Question

Locked

Dr Scheme list-ref problem?

By jothikumarr87 ·
(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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Peripheral Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums