Question Locked

Dr Scheme list-ref problem?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

(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".")]
)

)

)

1 reply

This discussion is closed to new replies.