Home Reference Source

References

summary
public

F all(f: Function, xs: Object): boolean

Tests if a function holds true for all elements in an iterable.

public

F allPairs(xs: Object, ys: Object): Object

Combines two iterables into one by pairing each element in the first with each element in the second.

public

F any(f: Function, xs: Object): boolean

Tests if a function holds true for any of the elements in an iterable.

public

F append(x: Object, xs: Object): Object

Appends an object to the end of an iterable sequence.

public

F buffer(xs: Object): Object

Takes an iterable and returns a new iterable with all of the same elements but with a memory buffer.

public

F chunk(n: Number, xs: Object): Object

Splits an iterable into chunks of a given size.

public

F concat(ys: Object, xs: Object): Object

Concatenates two iterables into one.

public

F count(xs: Object): number

Counts the number of elements in an iterable.

public

F defaultComparison(i: *, j: *): *

public

F dict(equality: *): {"get": *, "set": *}

public

F distinctUntilChanged(e: Object=, xs: Object): Object

Takes an iterable and returns a new one with adjacent duplicate elements removed.

public

F filter(f: Object, xs: Object): Object

Takes an iterable and returns a new one including only elements that satisfy a given predicate.

public

F first(f: Object=, xs: Object): Object

Returns the first element of an iterable that satisfies a given predicate.

public

F flatMap(f: Object, xs: Object): Object

Takes an iterable and returns a new one where each element is transformed using the given function.

public

Given an iterable returns a new iterable that repeats it forever.

public

Given an array, returns an iterable with equivalent elements.

public

Given a generator function, returns an iterable with equivalent elements.

public

F groupBy(f: Object, equality: Object, xs: Object): Object

Returns an iterable of iterables split by the grouping function.

public

F head(xs: Object): Object

Returns the first element of an iterable.

public

F includes(element: Object, equality: Object, xs: Object): boolean

Tests if a an iterable contains a given element.

public

F indexed(xs: *)

public

F intercalate(s: Object=, xs: Object): Object

Puts a given item between each element in a sequence.

public

Tests if a given object is an iterable

public

F join(s: String=, xs: Object): String

Joins all elements in an iterable using the given seperator.

public

F just(elements: ...Object): Object

Constructs an iterable from a fixed list of elements.

public

F last(f: Object=, xs: Object): Object

Returns the last element of an iterable that satisfies a given predicate.

public

F map(f: Object, xs: Object): Object

Takes an iterable and returns a new one where each element is transformed using the given function.

public

F max(c: Object=, xs: Object): Object

Takes an iterable and returns the largest element, according to the given comparison.

public

F min(c: Object=, xs: Object): Object

Takes an iterable and returns the smallest element, according to the given comparison.

public

F none(f: Function=, xs: Object): boolean

Tests if a function holds true for none of the elements in an iterable.

public

F nth(n: Number, xs: Object): Object

Returns the nth element of an iterable.

public

F once(xs: Object): Object

Takes an iterable and returns a new iterable that may only be iterated once.

public

F prepend(x: Object, xs: Object): Object

Prepends an object to the start of an iterable sequence.

public

F range(n: Number=): Object

Creates an iterable of numbers from zero to the given limit.

public

F reduce(s: Object, f: Object, xs: Object): Object

Performs a reduction of an iterable, starting from a given state and reducer function.

public

F remove(n: Number, xs: Object): Object

Takes an iterable and returns a new iterable where the nth element has been skipped.

public

F repeat(n: Number, xs: Object): Object

Repeats an iterable for the given number of times.

public

Given an iterable, returns a new iterable with the elements reversed.

public

F set(n: Number, value: Object, xs: Object): Object

Takes an iterable and returns a new iterable where the nth element has been set to a given value.

public

F single(f: Object=, xs: Object): Object

Returns the first element of an iterable that satisfies a given predicate.

public

F skip(n: Number, xs: Object): Object

Skips the first n elements of an iterable.

public

Skips elements from an iterable for as long as the elements satisfy a given condition.

public

F smoosh(xs: Object): Object

Deep flattens an iterable and all of its nested iterables.

public

F sorted(c: Object=, xs: Object): Object

Given an iterable, returns a new iterable with the elements sorted.

public

F sortedBy(f: *, c: *): *

public

F sortedByDesc(f: *, c: *): *

public

F sum(xs: Object): Number

Sums all elements in an iterable.

public

F tail(xs: Object): Object

Returns an iterable of all elements except the first.

public

F take(n: Number, xs: Object): Object

Takes the first n elements of an iterable.

public

Takes elements from an iterable for as long as the elements satisfy a given condition.

public

F toArray(xs: Object): Array

Takes an iterable and converts it into an array.

public

F unique(e: Object=, xs: Object): Object

Takes an iterable and returns a new one with duplicate elements removed.

public

F update(n: Number, f: Function, xs: Object): Object

Takes an iterable and returns a new iterable where the nth element has been updated with the given function.

public

F zip(ys: Object, xs: Object): Object

Combines two iterables into one by pairing elements.

public

V defaultEquality: {"hashCode": *, "isEqual": *}

public

V empty: {"undefined": *}

An empty iterable.

public

V strictEquality: {"hashCode": *, "isEqual": *}

public

V stringifyEquality: {"hashCode": *, "isEqual": *}

public

V structuralEquality: {"hashCode": *, "isEqual": *}