Name: Anonymous 2008-11-23 23:19
is it possible without macros?
((+) 1 2 3) ≡ ((+ 1) 2 3) ≡ ((+ 1 2) 3) ≡ (+ 1 2 3) ≡ (((+) 1) 2 3) ≡ (((+ 1) 2) 3) ≡ ...(define (plus . args)
(if (null? args)
plus
(lambda x
(apply plus (append args x)))))