[plt-scheme] boolean operators on integers

From: wooks (wookiz at hotmail.com)
Date: Sat Jul 12 09:44:31 EDT 2008

> (and 1 0)
0
> (and 0 1)
1

> (and 1 0 0)
0
> (and 0 0 1)
1
> (and 0 1 0)
0
> (and 0 1 1)
1

Seems like and is just returning the value of the last argument.

The integers 0 and 1 are supposed (for my purposes ) to be boolean
flags true and false so this is not the behaviour that I want.

Using language Pretty Big.


Posted on the users mailing list.