Skip to content

Include/explain iterator laziness in overview documentation #1145

Closed
@ksilin

Description

@ksilin

The documentation of Iterator#map explains the lazy nature correctly, once you know about iterator laziness already. However, the implications for side-effecting applications of map can surprise developers new to Scala (as it did surprise me)

An aside on the implications of laziness in the Iterator overview docs would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions