Instance Property

lazy

A view onto this collection that provides lazy implementations of normally eager operations, such as map and filter.

Declaration

var lazy: LazyRandomAccessCollection<Array<Element>> { get }

Discussion

Use the lazy property when chaining operations to prevent intermediate operations from allocating storage, or when you only need a part of the final collection to avoid unnecessary computation.

See Also

Related Symbols

LazySequenceProtocol, LazyCollectionProtocol.