-
Notifications
You must be signed in to change notification settings - Fork 53.9k
Closed
Labels
on-jiratriagedIssues reviewed by a dev and considered valid. Will be added in Jira.Issues reviewed by a dev and considered valid. Will be added in Jira.
Description
Hi @lor6, I think the article still needs a minor update.
It says
In this case, since the stream is not consumed greedily, it is still partially lazy
The new approach is actually fully lazy, so you can e.g. insert an element at index 3 billion in constant time.
Also, the conclusion says
Keep in mind that although prepending an element works for any Stream, adding it to the end or at a specific index only works for finite streams.
This sentence can probably be removed because inserting at a specific finite index now works for any Stream, and it does technically work to append to the end of an infinite stream, you just wouldn't reach the element after a finite number of steps.
Originally posted by @GeoffChurch in #10931 (comment)
Metadata
Metadata
Assignees
Labels
on-jiratriagedIssues reviewed by a dev and considered valid. Will be added in Jira.Issues reviewed by a dev and considered valid. Will be added in Jira.