speaking about sequences are they just as performa...
# language-evolution
s
speaking about sequences are they just as performant as java streams? do you guys sometimes use java streams in kotlin for performance?
e
they're not really the same thing. Sequences are sequential. Streams are not (necessarily).
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
s
they do have worst performance as well, right?
e
it depends
2