Scheme/Lisp nested loops and recursion
问题 I'm trying to solve a problem in Scheme which is demanding me to use a nested loop or a nested recursion. e.g. I have two lists which I have to check a condition on their Cartesian product. What is the best way to approach these types of problems? Any pointers on how to simplify these types of functions? I'll elaborate a bit, since my intent might not be clear enough. A regular recursive function might look like this: (define (factorial n) (factorial-impl n 1)) (define (factorial-impl n t)