Home Manual Reference Source

Function

Static Public Summary
public

chain(iterables: *, out: *): *

public

combinations(iterable: *, repeat: *, out: *): *

public

combinationswithrepetition(iterable: *, r: *, out: *): *

public

compress(iterable: *, selector: *, out: *): *

public

dropwhile(predicate: *, iterable: *, out: *): *

public

each(callback: *, array: *, left: *, right: *)

public

enumerate(iterable: *, out: *): *

public

filter(predicate: *, iterable: *, out: *): *

public

filterfalse(predicate: *, iterable: *, out: *): *

public

get(a: *, i: *): *

public

group(key: *, iterable: *, out: *): *

public

islice(iterable: *, start: *, stop: *, step: *, out: *): *

public

map(callable: *, iterable: *, out: *): *

Maps a callable object over an array.

public

permutations(iterable: *, repeat: *, out: *): *

public

pick(array: *, indices: *, out: *): *

public

product(iterables: *, repeat: *, out: *): *

public

range(start: *, stop: *, step: *, out: *): *

public

repeat(element: *, times: *, out: *): *

public

repr(array: *, left: *, right: *): *

public

reversed(iterable: *, out: *): *

public

set(a: *, i: *, v: *)

public

slice(array: *, left: *, right: *): *

public

sort(f: *, array: *): *

public

sorted(f: *, iterable: *): *

public

splice(a: *, ai: *, aj: *, b: *, bi: *, bj: *): *

public

starmap(callable: *, iterable: *, out: *): *

Maps a callable object over an array.

public

takewhile(predicate: *, iterable: *, out: *): *

public

tee(iterable: *, n: *, out: *): *

public

zip(iterables: *, out: *): *

Static Public

public chain(iterables: *, out: *): * source

Params:

NameTypeAttributeDescription
iterables *
out *

Return:

*

public combinations(iterable: *, repeat: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
repeat *
out *

Return:

*

public combinationswithrepetition(iterable: *, r: *, out: *): * source

import {combinationswithrepetition} from '@array-like/experimental/src/map/combinationswithrepetition.js'

Params:

NameTypeAttributeDescription
iterable *
r *
out *

Return:

*

public compress(iterable: *, selector: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
selector *
out *

Return:

*

public dropwhile(predicate: *, iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
predicate *
iterable *
out *

Return:

*

public each(callback: *, array: *, left: *, right: *) source

Params:

NameTypeAttributeDescription
callback *
array *
left *
right *

public enumerate(iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
out *

Return:

*

public filter(predicate: *, iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
predicate *
iterable *
out *

Return:

*

public filterfalse(predicate: *, iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
predicate *
iterable *
out *

Return:

*

public get(a: *, i: *): * source

Params:

NameTypeAttributeDescription
a *
i *

Return:

*

public group(key: *, iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
key *
iterable *
out *

Return:

*

public islice(iterable: *, start: *, stop: *, step: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
start *
stop *
step *
out *

Return:

*

public map(callable: *, iterable: *, out: *): * source

Maps a callable object over an array.

/!\ currently only supports a (function, array) tuple as argument

Params:

NameTypeAttributeDescription
callable *
iterable *
out *

Return:

*

public permutations(iterable: *, repeat: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
repeat *
out *

Return:

*

public pick(array: *, indices: *, out: *): * source

Params:

NameTypeAttributeDescription
array *
indices *
out *

Return:

*

public product(iterables: *, repeat: *, out: *): * source

Params:

NameTypeAttributeDescription
iterables *
repeat *
out *

Return:

*

public range(start: *, stop: *, step: *, out: *): * source

Params:

NameTypeAttributeDescription
start *
stop *
step *
out *

Return:

*

public repeat(element: *, times: *, out: *): * source

Params:

NameTypeAttributeDescription
element *
times *
out *

Return:

*

public repr(array: *, left: *, right: *): * source

Params:

NameTypeAttributeDescription
array *
left *
right *

Return:

*

public reversed(iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
out *

Return:

*

public set(a: *, i: *, v: *) source

Params:

NameTypeAttributeDescription
a *
i *
v *

public slice(array: *, left: *, right: *): * source

Params:

NameTypeAttributeDescription
array *
left *
right *

Return:

*

public sort(f: *, array: *): * source

Params:

NameTypeAttributeDescription
f *
array *

Return:

*

public sorted(f: *, iterable: *): * source

Params:

NameTypeAttributeDescription
f *
iterable *

Return:

*

public splice(a: *, ai: *, aj: *, b: *, bi: *, bj: *): * source

Params:

NameTypeAttributeDescription
a *
ai *
aj *
b *
bi *
bj *

Return:

*

public starmap(callable: *, iterable: *, out: *): * source

Maps a callable object over an array.

/!\ currently only supports a (function, array) tuple as argument

Params:

NameTypeAttributeDescription
callable *
iterable *
out *

Return:

*

public takewhile(predicate: *, iterable: *, out: *): * source

Params:

NameTypeAttributeDescription
predicate *
iterable *
out *

Return:

*

public tee(iterable: *, n: *, out: *): * source

Params:

NameTypeAttributeDescription
iterable *
n *
out *

Return:

*

public zip(iterables: *, out: *): * source

Params:

NameTypeAttributeDescription
iterables *
out *

Return:

*