Arc Forum
new
|
comments
|
leaders
|
submit
login
3 points
by
rocketnia
5237 days ago |
link
|
parent
For that example, what about just defining a 'walk method for every collection and defining 'each the way Anarki does?
(mac each (var expr . body) `(walk ,expr (fn (,var) ,@body)))
1 point
by
ylando
5237 days ago |
link
"Each" can iterate over millions of elements; in this case, we can use class macros to remove the function calls.
-----