H
Hal Fulton
Would it make sense to allow #find to take an argument or a block
(but not both)?
I'd like this
x.find {|a| a==y }
to be shortened to
x.find(y)
The only question this raises in my mind is: Do we assume == or === or
what? I would prefer/expect ==.
Synonyms and related methods (#detect, #find_all, ...) would be
similarly affected.
Comments??
Hal
(but not both)?
I'd like this
x.find {|a| a==y }
to be shortened to
x.find(y)
The only question this raises in my mind is: Do we assume == or === or
what? I would prefer/expect ==.
Synonyms and related methods (#detect, #find_all, ...) would be
similarly affected.
Comments??
Hal