You are viewing a single comment's thread. Return to all comments →
Why does it works with 'and' but not with && ?
def func_all(hash) hash.all? {|k,v| v.is_a? Integer and v < 10} end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Enumerables: 'any', 'all', 'none', and 'find'
You are viewing a single comment's thread. Return to all comments →
Why does it works with 'and' but not with && ?