Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/stream/custom/stream-custom.ts>ArrayStream

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class ArrayStream
extends StreamBase<T>
import { ArrayStream } from "https://deno.land/x/rimbu@1.1.0/stream/custom/stream-custom.ts";

Constructors

new
ArrayStream(
array: readonly T[],
startIndex?,
endIndex?,
reversed?,
)

Properties

readonly
length: number

Methods

contains(searchValue: T, options?: { amount?: number; eq?: Eq<T>; negate?: boolean; }): boolean
count(): number
drop(amount: number): Stream<T>
elementAt<O>(index: number, otherwise?: OptLazy<O>): T | O
every(pred: (value: T, index: number) => boolean, options?: { negate?: boolean; }): boolean
find<O>(pred: (value: T, index: number) => boolean, options?: { occurrance?: number; negate?: boolean; otherwise?: OptLazy<O>; }): T | O
first<O>(otherwise?: OptLazy<O>): T | O
forEach(f: (
value: T,
index: number,
halt: () => void,
) => void
, options?: { state?: TraverseState; }
): void
indexOf(searchValue: T, options?: { occurrance?: number; eq?: Eq<T>; negate?: boolean; }): number | undefined
last<O>(otherwise?: OptLazy<O>): T | O
some(pred: (value: T, index: number) => boolean, options?: { negate?: boolean; }): boolean
take(amount: number): Stream<T>
toArray(): T[]