Dr Scheme list-ref problem? - TechRepublic
Question
February 12, 2010 at 08:18 PM
jothikumarr87

Dr Scheme list-ref problem?

by jothikumarr87 . Updated 16 years, 3 months ago

(define (p)
(define list1(list 10 20 30 40 ))

(let print ([n 0])
(cond
[(< n (- (length list1) 1)) (list-ref list1 n)(display " ") (print (+ n 1)) ] [else (display".")] ) ) )

This discussion is locked

All Comments