Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ddfreyne
· 13y ago · 0 comments
A small mistake: “In Ruby, these functions are map, filter” — is incorrect;
filter
in Ruby is called
select
.
Comments
[–]
biesnecker
13y ago
Cheers, fixed (as soon as the cache updates)
[–]
charliesome
13y ago
Also Ruby has 'reduce' as a synonym for 'inject'
[–]
gingerlime
13y ago
...and thank god for that. I find inject a really confusing name.
[–]
gnaritas
13y ago
The Ruby names are copied from Smalltalk, as is much of Ruby.
[–]
talaketu
13y ago
Also: (++) :: [a] -> [a] -> [a]
Article implies: (++) :: [a] -> a -> [a]