asImmutable
|
A function that takes a (mutable) JavaScript collection and renders an Immutable.js collection.
|
asMutable
|
This is a concession to "not-the-best" programming. The proper way to handle mutations based on an Immutable.js collection is to use with Mutations. Even if asMutable is available, it should only be used inside of functions and never be made available or returned.
|
butLast
|
This produces a similar new List, but it lacks the last entry.
|
concat
|
Concatenate (that is, append) two iterables of the same type.
|
contains
|
This is true if the value exists in this List.
|
count
|
Return the size of this List.
|
countBy
|
Group the List's contents with a grouper function, and then emit counts for the keys as partitioned by the grouper.
|
delete
|
Create a new List without this key.
|
deleteIn
|
Remove a key from a keypath, which allows traversal from an outer collection to an inner collection, much like the way a filesystem path allows traversal of the filesystem from an outer directory to an inner directory.
|
entries
|
An iteration of the List as key , value tuples .
|
entrySeq
|
Create a new IndexedSeq of key, value tuples.
|
equals
|
This is a full equality comparison.
|
every
|
This is true if a predicate is true for all entries in this List.
|
filter
|
Returns the elements of a List for which the provided predicate holds true.
|
filterNot
|
Returns the elements of a List for which the provided predicate returns false.
|
find
|
Returns the value for which the provided predicate holds true.
|
findIndex
|
Returns the first index for which the provided predicate holds true.
|
findLast
|
Returns the last element for which the provided predicate holds true.
|
findLastIndex
|
Returns the last index for which the provided predicate holds true.
|
first
|
The first value in the List.
|
flatMap
|
This flat-maps, or collapses, a potential List of Lists into a List that is one deep.
|
flatten
|
This flattens nested iterables.
|
forEach
|
Executes a function for each entry in the list.
|
fromEntrySeq
|
Return a KeyedSeq of any iterable of the key, value tuples.
|
get
|
Returns the value for a key.
|
getIn
|
Traverses a key path (like a filesystem path) to get a key, if available.
|
groupBy
|
Converts a List into a List of Lists keyed by the grouping of a provided grouper function.
|
has
|
This is true if a key exists in this List.
|
hashCode
|
This calculates a hash code for this collection. It is appropriate for use in a hash table.
|
hasIn
|
This is true if a collection's equivalent to a filesystem walk finds the value in question.
|
indexOf
|
The index of the first occurrence in this List, for example, Array.prototype.indexOf .
|
interpose
|
Interpose a separator between individual List entries.
|
interleave
|
Interleave the provided Lists into one list of the same type.
|
isEmpty
|
This tells whether this iterable has values or not.
|
isList
|
This is true if the value is a List.
|
isSubset
|
True if every value in the comparison iterable is in this List.
|
isSuperset
|
True if every value in this List is in the comparison iterable.
|
join
|
This joins together as a string with a separator (default).
|
keys
|
An iterator of this List's keys.
|
keySeq
|
Returns a KeySeq for this iterable, discarding all values.
|
last
|
The last value in the List.
|
lastIndexOf
|
Returns the last index at which a value can be found in this List.
|
List
|
The constructor for lists.
|
map
|
Returns a new List with values passed through a map function.
|
max
|
Returns the maximum value in this collection.
|
maxBy
|
This is like max, but with more fine-grained control.
|
merge
|
Merges iterables or JavaScript objects into one List.
|
mergeDeep
|
A recursive analog to merge.
|
mergeDeepIn
|
Performs a deep merge, starting at a given keypath.
|
mergeDeepWith
|
This is like mergeDeep , but uses a provided merger function when nodes conflict.
|
mergeIn
|
This is a combination of update and merge. It performs a merger at a specified keypath.
|
mergeWith
|
This is like merge, but uses a provided merger function when nodes conflict.
|
min
|
Returns the minimum value in the List.
|
minBy
|
Returns the minimum value in the List as determined by a helper function you provide.
|
of
|
Creates a new list containing its arguments as values.
|
pop
|
This returns everything in this List but the last. Note that this differs from the standard push semantics, but a regular push() can be simulated by calling last() before push() .
|
push
|
Returns a new list with the specified value (or values) appended at the end.
|
reduce
|
Calls the reducing function for every value and returns the accumulated value.
|
reduceRight
|
This is similar to reduce, but starts at the right and moves progressively to the left, the opposite of the basic reduce.
|
rest
|
Returns the tail of a List, that is, all entries but the first.
|
reverse
|
Provides a List in reverse order.
|
set
|
Returns a new List with the value at the index.
|
setIn
|
Return a new List with this value at the keypath.
|
setSize
|
Creates a new List with the size that you specify, truncating or adding undefined values as needed.
|
shift
|
Creates a new list with the first value subtracted and all other values shifted down.
|
skip
|
Returns all that is left of the List when the first n entries are not included.
|
skipLast
|
Returns all that is left of the List when the last n entries are not included.
|
skipUntil
|
Returns a new iterable containing all entries after the first where a provided predicate is true.
|
skipWhile
|
This returns a new iterable containing all entries before a provided predicate is false.
|
slice
|
Returns a new iterable containing this list's contents from the start value to one before the last, inclusive.
|
some
|
True if a predicate returns true for any element of the List.
|
sort
|
Returns a new List sorted by an optional comparator.
|
sortBy
|
Returns a new List sorted by an optional comparator value mapper, with more detailed information available for the comparator and therefore more refined results.
|
splice
|
Replaces a segment of the first list with the second, or deletes it if no second list is provided.
|
take
|
Creates a new List containing exactly the first n entries in a List.
|
takeLast
|
Creates a new List containing exactly the last n entries in a List.
|
takeUntil
|
This returns a new List containing all entries as long as the predicate returns false; then it stops.
|
takeWhile
|
This returns a new List containing all entries as long as the predicate returns true; then it stops.
|
toArray
|
Shallowly converts this List to an Array, discarding the keys.
|
toIndexedSeq
|
Return an IndexedSeq of this List, discarding the keys.
|
toJS
|
Deeply converts this List into an Array. This method has toJSON() as an alias, although the documentation does not clearly state whether or not toJS() returns JavaScript objects, while toJSON() returns a JSON-encoded string.
|
toKeyedSeq
|
Returns a KeyedSeq from this List where indices are treated as keys.
|
toList
|
Returns itself.
|
toMap
|
Converts this List into a Map.
|
toObject
|
Shallowly converts this List into an Object.
|
toOrderedMap
|
Convert this List into a Map, preserving the order of iteration.
|
toSeq
|
Returns an IndexedSeq .
|
toSet
|
Converts this List to a Set, discarding the keys.
|
toSetSeq
|
Converts this List to a SetSeq , discarding the keys.
|
toStack
|
Convert this List to a Stack, discarding the keys.
|
unshift
|
Prepend the provided values to a List.
|
update
|
Update an entry on a List by a provided updater function.
|
updateIn
|
Update an entry, as in update(), but at a given key path.
|
values
|
An iterator of this List's values.
|
valueSeq
|
An IndexedSeq of this List's values.
|
withMutations
|
This is an optimization (recall "Premature optimization is the root of all evil," said by Donald Knuth) hook meant to allow more performant work when multiple mutations are performed. It is to be used when there are known and persistent performance issues where other tools have demonstrably not solved the problem.
|
zip
|
Returns an iterable zipped (that is, joined pairwise to make a list of 2-tuples) with this List.
|
zipWith
|
Returns an iterable zipped with a custom zipping function.
|