[plt-scheme] What are "and" and "or" ?
On Feb 15, 2008, at 4:09 PM, Marco Morazan wrote:
>
> Nonetheless, something fundamental has been lost here. Logical
> functions are, after all, functions (from the perspective of a pure
> mathematician and that is what students are calling me on).
Your students are correct. BUT nothing has been lost:
(define (and& x y) (and x y))
(define (or& x y) (or x y))
Doable in Beginner and now you can talk about the slight but
appreciable differences between plain mathematics and functional
programming and computation.
-- Matthias, throwing you an apple from paradise :-)