4 ms·
Just for comparison’s sake, java is not significantly more verbose. final var teens = people.stream().filter(p -> p.age < 20).map(People::name).toList()
by kaba0 4y ago
Just for comparison’s sake, java is not significantly more verbose.
final var teens = people.stream().filter(p -> p.age < 20).map(People::name).toList()
- LinXitoW 4y agoKeep in mind, you can use Kotlin in any JDK8 project and instantly get all those features. What you're proposing requires upgrading to a new JDK.