ReversedView

public struct ReversedView[T] { /* private fields */ }

Multi-pass lazy view that iterates a contiguous collection back-to-front without allocating.

Properties

public var count: Int64 { get }
public var first: Optional[T] { get }
public var isEmpty: Bool { get }
public var last: Optional[T] { get }

Initializers

public init(slice: ArraySlice[T])

Methods

public func toArray() -> Array[T]

Subscripts

public subscript(Int64) -> T { get }

ImplementsIterable

Associated Types

type Item = T
type TargetIterator = ReversedSliceIterator[T]

Methods

public func iter() -> ReversedSliceIterator[T]

Defined in lang/std/collections/views.ks