Re: [racket] cond else and

2012-12-12 Thread Stephen Bloch
> 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

Re: [racket] cond else and

2012-12-12 Thread Jens Axel Søgaard
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