chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Question about booleans


From: Daniel Carrera
Subject: [Chicken-users] Question about booleans
Date: Fri, 7 Mar 2014 14:42:00 +0100

Hello,

I have a problem with "and":

#;2> (use srfi-1)
#;3> (fold-right and #t '(#t #t #t #t))

Error: unbound variable: and

#;4> and

Error: unbound variable: and

#;5> (and #t #t)
#t


I'm confused. Is "and" defined as a macro? If so, why? My feeling is that I should be able to use "and" inside a fold. Have I missed something?

Cheers,
Daniel.
--
When an engineer says that something can't be done, it's a code phrase that means it's not fun to do.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]