Protocol

LazyCollectionProtocol

A collection on which normally-eager operations such as map and filter are implemented lazily.

Declaration

protocol LazyCollectionProtocol where Self.Elements : Collection

Overview

Please see LazySequenceProtocol for background; LazyCollectionProtocol is an analogous component, but for collections.

To add new lazy collection operations, extend this protocol with methods that return lazy wrappers that are themselves LazyCollectionProtocols.

Topics

Instance Properties

var lazy: Self.Elements

Relationships

See Also

Lazy Collections

protocol LazySequenceProtocol

A sequence on which normally-eager sequence operations are implemented lazily.