Link Search Menu Expand Document

Iterable

iterable.ts#L26

Class Itarray

Implements Iterable<T>

constructor (values: Array<Iterable<T>>): Itarray<T>

Name Type Default Description
values Array<Iterable<T>>    

readonly Property .values

Method .[Symbol.iterator] (): Generator<T, void, unknown>

Method .concat (newValues: Iterable<T>): void

Name Type Default Description
newValues Iterable<T>    

Method .every (fn: (t: T, i: number): boolean): boolean

Name Type Default Description
fn (t: T, i: number): boolean    

Method .filter (fn: (t: T, i: number): unknown): Itarray<T>

Name Type Default Description
fn (t: T, i: number): unknown    

Method .map (fn: (t: T, i: number): S): Itarray<S>

Name Type Default Description
fn (t: T, i: number): S    

Method .slice (from: number, to: number): Itarray<T>

Name Type Default Description
from number    
to number    

Method .some (fn: (t: T, i: number): boolean): boolean

Name Type Default Description
fn (t: T, i: number): boolean    

static Method .make (fn: (i: number): T, max: number): Itarray<T>

Name Type Default Description
fn (i: number): T    
max number    
iterable.ts#L11

every (set: Iterable<T>, callback: (v: T): any): boolean

Name Type Default Description
set Iterable<T>    
callback (v: T): any    
iterable.ts#L7

first (set: Iterable<T>): undefined|T

Name Type Default Description
set Iterable<T>    
iterable.ts#L18

some (set: Iterable<T>, callback: (v: T): any): boolean

Name Type Default Description
set Iterable<T>    
callback (v: T): any    

Copyright © 2021 Mathigon.org