4 ms·
Stream.limit and Stream.select(…).limit are not the same thing :) records.collect({case u if u.isAdmin => s”${u.id} ${u.name}”}).take(10) guess the language
by AzzieElbab 4y ago
Stream.limit and Stream.select(…).limit are not the same thing :)
records.collect({case u if u.isAdmin => s”${u.id} ${u.name}”}).take(10) guess the language
- pjmlp 4y agoWell you can argue semantics, it doesn't change the fact that it is possible to implement the same concepts in Go with generics. That line of code could be Scala, or something else. In any case, the point is that there are compiled languages that offer similar productivity like Ruby, with AOT/JIT compilers out of the box, and great IDE experiences.
- AzzieElbab 4y agoIt is Scala. I meant to demo type inference and pattern matching. I know pattern matching(something I cant live without) does not exist in Go and Ts, not sure how well type inference works in Go