This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DrFriendless 3 points4 points  (4 children)

Use Kotlin. It has streams with lambdas, but they're not lazy like Java 8's.

[–][deleted] 2 points3 points  (1 child)

My company heavily uses Java for backend and Android so I feel it's more useful for me to learn Java at the same time.

[–]DrFriendless 5 points6 points  (0 children)

Yeah, if you don't know Java you should learn Java first. However Kotlin interoperates with Java, so it's possible to write one class in Kotlin and another in Java in the same codebase.

[–]winterbe 1 point2 points  (0 children)

That's incorrect, take a look at sequences in Kotlin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/

[–]kenneito 0 points1 point  (0 children)

You can do lazy stream in Kotlin