Y
Hacker News
new
|
ask
|
show
|
jobs
by
smosher_
3946 days ago
Fwiw I avoid writing both loops and recursion as much as possible. Collection data structures usually come with their own fold/map/etc functions, so this works well in practice.