Re:Understanding map, filter, and fold
by ddfreyne on Monday December 24, 2012 @02:33AM
(#4962191)
A small mistake: “In Ruby, these functions are map, filter” — is incorrect; filter in Ruby is called select.
[ Parent
| on HN ]
Re:Understanding map, filter, and fold
by biesnecker on Monday December 24, 2012 @02:41AM
(#4962209)
Cheers, fixed (as soon as the cache updates)
Re:Understanding map, filter, and fold
by charliesome on Monday December 24, 2012 @03:30AM
(#4962282)
Also Ruby has 'reduce' as a synonym for 'inject'
Re:Understanding map, filter, and fold
by gingerlime on Monday December 24, 2012 @05:53AM
(#4962498)
...and thank god for that. I find inject a really confusing name.
The Ruby names are copied from Smalltalk, as is much of Ruby.