by tcc619 · 14y ago · 0 comments
scala: List(54,2,46).filter(x => x == 2) ruby: [54,2,46].select{|x| x == 2}