Join Slack
Powered by
The second performs more operations (assuming stdl...
# announcements
r
randomcat
03/08/2020, 5:16 PM
The second performs more operations (assuming stdlib everything) - see
https://kotlinlang.org/docs/reference/sequences.html
for why and for the stdlib alternative
h
Hullaballoonatic
03/08/2020, 5:20 PM
I thought sequences in kotlin inherently had overhead because of data structuring or some such, not because of the theoretical impact
r
randomcat
03/08/2020, 5:22 PM
whoops, looks like I misread your question as "which one performs more operations?" instead of "which one performs better?" sorry about that
h
Hullaballoonatic
03/08/2020, 5:23 PM
yeah, and I'm not instantiating a
Sequence
here. They're still
Collection
methods
Open in Slack
Previous
Next