6 ms·
A small mistake: “In Ruby, these functions are map, filter” — is incorrect; filter in Ruby is called select.
by ddfreyne 14y ago
A small mistake: “In Ruby, these functions are map, filter” — is incorrect; filter in Ruby is called select.
- biesnecker 14y agoCheers, fixed (as soon as the cache updates)
- charliesome 14y agoAlso Ruby has 'reduce' as a synonym for 'inject'
- gingerlime 14y ago...and thank god for that. I find inject a really confusing name.
- gnaritas 14y agoThe Ruby names are copied from Smalltalk, as is much of Ruby.
- talaketu 14y agoAlso: (++) :: [a] -> [a] -> [a] Article implies: (++) :: [a] -> a -> [a]