Skip to content

There is no systematic way of documenting how lazy a non-strict collection operation is #11498

Open
@julienrf

Description

@julienrf

In LazyList, strict operations have the following description:

image

It contains both “Note: Even when applied to a view or a lazy collection it will always force the elements.” and “This method evaluates all elements of the collection.”, which are redundant, IMO.

Some operations have the following comment:

image

“This method preserves laziness; elements are only evaluated individually as needed.” But this note is not present in the View operations.

We should use only one way to document whether an operation is strict or non-strict, and in case an operation is “mostly lazy” (e.g., takeRight) we should clearly document what will be evaluated and when.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions