WindowsView

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

Multi-pass lazy view over overlapping fixed-size sliding windows.

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], windowSize: Int64)

Methods

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

Subscripts

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

ImplementsIterable

Associated Types

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

Methods

public func iter() -> WindowsIterator[T]

Defined in lang/std/collections/views.ks