lazy

func lazy<S : SequenceType>(_: S)

Augment s with lazy methods such as map, filter, etc.

Declaration

func lazy<S : SequenceType>(s: S) -> LazySequence<S>
func lazy<S : CollectionType where S.Index : ForwardIndexType>(_: S)

Augment s with lazy methods such as map, filter, etc.

Declaration

func lazy<S : CollectionType where S.Index : ForwardIndexType>(s: S) -> LazyForwardCollection<S>
func lazy<S : CollectionType where S.Index : RandomAccessIndexType>(_: S)

Augment s with lazy methods such as map, filter, etc.

Declaration

func lazy<S : CollectionType where S.Index : RandomAccessIndexType>(s: S) -> LazyRandomAccessCollection<S>
func lazy<S : CollectionType where S.Index : BidirectionalIndexType>(_: S)

Augment s with lazy methods such as map, filter, etc.

Declaration

func lazy<S : CollectionType where S.Index : BidirectionalIndexType>(s: S) -> LazyBidirectionalCollection<S>