View, a Scala language concept
Last updated
The .view
syntax creates a structure that mirrors another structure, until "forced" by an eager operation like .toList, .foreach, .forall, .count.
There's more!
To see the rest of the Scala concept, and all our other concepts for free, Register (free).