比如说我有
(define sample '("a" "b" "c"))
我将如何创建一个可以与示例一起使用的嵌套循环。
(define (runthis a)
(cond
(char? (car a)) ;given that this condition is true I go on to the nested loop
(define (work sample)
<dosomething>
(work (cdr sample))))
(else (write " ")
(runthis(cdr a))))
这是基本嵌套循环的正确模板吗?