ChunksView

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

Multi-pass lazy view over non-overlapping chunkSize-sized ArraySlice[T] segments.

Properties

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

Initializers

public init(slice: ArraySlice[T], chunkSize: Int64)

Methods

public func toArray() -> Array[ArraySlice[T]]

Subscripts

public subscript(Int64) -> ArraySlice[T] { get }

ImplementsIterable

Associated Types

type Item = ArraySlice[T]
type TargetIterator = ChunksIterator[T]

Methods

public func iter() -> ChunksIterator[T]

Defined in lang/std/collections/views.ks