News for hackers. Stuff that matters.
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.
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.
Re:Understanding map, filter, and fold by gnaritas on Monday December 24, 2012 @10:59AM (#4963165)
The Ruby names are copied from Smalltalk, as is much of Ruby.
Re:Understanding map, filter, and fold by talaketu on Monday December 24, 2012 @05:32AM (#4962463)
Also: (++) :: [a] -> [a] -> [a]

Article implies: (++) :: [a] -> a -> [a]