Home Manual Reference Source

References

summary
private

F * _drop(iterable: Iterable, n: Number): IterableIterator

Drops the first n values of the input iterable.

private

F * _tail(iterable: Iterable, n: Number): IterableIterator

Returns the last n values of the input iterable in an array.

private

F * _take(iterable: Iterable, n: Number): IterableIterator

Yields the first n elements of the input iterable.

private

F * _trunc(iterable: Iterable, n: Number): IterableIterator

Yields all elements of the iterable except the last n ones.

public

F drop(iterable: Iterable, n: Number): IterableIterator

Drops the first n values of the input iterable.

public

F * dropwhile(predicate: Function, iterable: Iterable): Iterator

Drop elements of the input iterable while the current element satisfies the input predicate.

public

F * slice(iterable: Iterable, start: Number, stop: Number, step: Number): IterableIterator

Same as map( [ i , x ] => x , filter( [ i , x ] => (new Set( range( start , stop , step ) ) ).has( i ) , enumerate( iterable ) ) );.

public

F tail(iterable: Iterable, n: Number): IterableIterator

Returns the last n values of the input iterable in an array.

public

F take(iterable: Iterable, n: Number): IterableIterator

Yields the first n elements of the input iterable.

public

F * takewhile(predicate: Function, iterable: Iterable): Iterator

Output elements of the input iterable while the current element satisfies the input predicate.

public

F trunc(iterable: Iterable, n: Number): IterableIterator

Yields all elements of the iterable except the last n ones.

public

V head: *

Same as take.