Y
Hacker News
new
|
ask
|
show
|
jobs
by
ddfreyne
4919 days ago
A small mistake: “In Ruby, these functions are map, filter” — is incorrect;
filter
in Ruby is called
select
.
1 comments
biesnecker
4919 days ago
Cheers, fixed (as soon as the cache updates)
link
charliesome
4919 days ago
Also Ruby has 'reduce' as a synonym for 'inject'
link
gingerlime
4918 days ago
...and thank god for that. I find inject a really confusing name.
link
gnaritas
4918 days ago
The Ruby names are copied from Smalltalk, as is much of Ruby.
link
talaketu
4918 days ago
Also: (++) :: [a] -> [a] -> [a]
Article implies: (++) :: [a] -> a -> [a]
link