ArraySplitWhereView

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

Multi-pass lazy view over the segments produced by splitting on each element matching a predicate. No Equatable requirement. (Named ArraySplitWhereView to avoid collision with std.text.SplitWhereView.)

Properties

public var count: Int64 { get }
public var isEmpty: Bool { get }

Initializers

public init(slice: ArraySlice[T], predicate: consuming (T) -> Bool)

Methods

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

ImplementsIterable

Associated Types

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

Methods

public func iter() -> ArraySplitWhereIterator[T]

Defined in lang/std/collections/views.ks