[racket] internal define in define
20 minutes ago, Jon Rafkind wrote:
> Yet another option that I mentioned was: | (+ 1 { n = 8 | (sqr x) =
> (* x x) | (sqr n) })
>
>
> #lang honu
>
> (1 + { var n = 8;
> sqr(x){ x * x }
> sqr(n) })
>
> > 65
>
> Of course I sort of cheated and just (as in 5 seconds ago) changed
> {} from (begin ...) to (let () ...)
It's obvious in a curlied language. (I'd be surprised by {}s being a
`begin'.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!