I am trying to use logical operations on reduce, for example:
(reduce and '(#t #t #t) 0)
This gives me an error, I'm not sure why.
(reduce + '(1 2 3) 0)
This works perfectly fine, but when I try to use the built-in and operation, it fails.
Can someone explain me why wouldn't this work? I am forced to use reduce on logical operation
andis not a function, as Terje D said, but you can make your own to pass around:(foldl (lambda (x y) (and x y)) #t '(#t #t))returns#t:-)