A little hint from anonymous :-)> ; secret statement redefining something> (+ 2 2)5> (+ 1 2 3)7> (+ 0)1>
You could redefine the println function:(define ([println]) (map print (0 -1 (args))) (print (+ 1 ((args) -1)) ))(constant 'println [println])but I bet you didn't do that...
Using things I learned from this blog:(set 't (sym "(+ 2 2)"))(set 'i t)(set i 5)(println i " = " (eval i))
Yap, anonymous, you are right. :-)
A little hint from anonymous :-)
ReplyDelete> ; secret statement redefining something
> (+ 2 2)
5
> (+ 1 2 3)
7
> (+ 0)
1
>
You could redefine the println function:
ReplyDelete(define ([println])
(map print (0 -1 (args)))
(print (+ 1 ((args) -1)) ))
(constant 'println [println])
but I bet you didn't do that...
Using things I learned from this blog:
ReplyDelete(set 't (sym "(+ 2 2)"))
(set 'i t)
(set i 5)
(println i " = " (eval i))
Yap, anonymous, you are right. :-)
ReplyDelete