speaking about sequences are they just as performant as java streams? do you guys sometimes use java streams in kotlin for performance?
e
ephemient
06/02/2024, 4:25 PM
they're not really the same thing. Sequences are sequential. Streams are not (necessarily).
ephemient
06/02/2024, 4:27 PM
even considering only ordered streams, they're still not the same: streams can have resource cleanup and contain primitives unboxed, sequences can contain null and many terminal operations are inline