Re:Is it possible to write c...r in lisp, for any combinatio...
by rincewind on Sunday October 11, 2009 @07:02AM
(#874628)
In Clojure: possible but ugly. Use destructuring in production instead.
[ Parent
| on HN ]
Re:Is it possible to write c...r in lisp, for any combinatio...
by philh on Sunday October 11, 2009 @08:09AM
(#874667)
That lets you write c[ad]{1,10}r, or c[ad]{1,n}r with O(2^n) initialisation time. OP wanted to be able to write c[ad]+r.
Also, that eval could be replaced with (untested)
(intern *ns* (symbol (str "c" name)) fun)