> 2012/12/12 Frank Weytjens wrote:
>> (define (draw-shapes a-posn a-lon)
>> (cond
>>[(empty? a-lon) true]
>>[else (and (draw-circle a-posn (first a-lon))
>> (draw-shapes a-posn (rest a-lon)))]))
>> ...
Jens Axel Søgaard replied:
> In the teaching languages only one expres
2012/12/12 Frank Weytjens :
> For example:
>
> (define (draw-shapes a-posn a-lon)
> (cond
> [(empty? a-lon) true]
> [else (and (draw-circle a-posn (first a-lon))
>(draw-shapes a-posn (rest a-lon)))]))
>
> Why is there an AND needed in the else clause?
> ELSE is normaly us
2 matches
Mail list logo