4 ms·
scala offers a syntax of programming similar to ruby especially in terms of collection operations. i found this to be a big win over java. scala: List(54,2,46)
by tcc619 14y ago
scala offers a syntax of programming similar to ruby especially in terms of collection operations. i found this to be a big win over java.
scala: List(54,2,46).filter(x => x == 2)
ruby: [54,2,46].select{|x| x == 2}
- qu4z-2 14y agoC#: new List<int>{54, 2, 46}.Where(x => x == 2)