Hi, I'm new to Scheme
when I type
(define rec (lambda (n) (if (= n 0 ) "oops!" (/ 1 n ) ) ) )
The procedure seems to be accepted
But when I do:
(rec 1)
I get:
Error: (cadr) bad argument type: ()
Call history:
<syntax> (rec 1)
<syntax> (##core#letrec ((1)) 1) <--
Why is that?
Daniel
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users
