Package-level declarations
The main API: immutable and persistent collection interfaces (ImmutableList, PersistentMap, etc.), entry-point factory functions (persistentListOf, persistentSetOf, persistentMapOf and their hash-based counterparts), and extension functions for conversion (toImmutableList, toPersistentSet, …), operators (+, -), and batch updates (mutate).
Types
A generic immutable collection of elements. Methods in this interface support only read-only access to the collection.
A generic immutable ordered collection of elements. Methods in this interface support only read-only access to the immutable list.
A generic immutable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the immutable map.
A generic immutable unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the immutable set.
A generic persistent collection of elements that supports adding and removing elements.
A generic persistent ordered collection of elements that supports adding and removing elements.
A generic persistent collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
A generic persistent unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
Functions
Returns a new persistent set with elements in this collection that are also contained in the specified elements collection.
Returns a new persistent set with elements in this set that are also contained in the specified elements collection, or this instance if no modifications were made in the result of this operation.
Returns a new persistent collection with a single appearance of the specified element removed, or this instance if there is no such element in this collection.
Returns a new persistent collection containing all elements of this collection except the elements contained in the specified elements array, or this instance if there are no elements to remove.
Returns a new persistent collection containing all elements of this collection except the elements contained in the specified elements collection, or this instance if there are no elements to remove.
Returns a new persistent collection containing all elements of this collection except the elements contained in the specified elements sequence, or this instance if there are no elements to remove.
Returns a new persistent list with the first appearance of the specified element removed, or this instance if there is no such element in this list.
Returns a new persistent list containing all elements of this list except the elements contained in the specified elements array, or this instance if there are no elements to remove.
Returns a new persistent list containing all elements of this list except the elements contained in the specified elements collection, or this instance if there are no elements to remove.
Returns a new persistent list containing all elements of this list except the elements contained in the specified elements sequence, or this instance if there are no elements to remove.
Returns a new persistent map with the specified key and its corresponding value removed, or this instance if it contains no mapping for the key.
Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys array, or this instance if there are no entries to remove.
Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys collection, or this instance if there are no entries to remove.
Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys sequence, or this instance if there are no entries to remove.
Returns a new persistent set with the specified element removed, or this instance if there is no such element in this set.
Returns a new persistent set containing all elements of this set except the elements contained in the specified elements array, or this instance if there are no elements to remove.
Returns a new persistent set containing all elements of this set except the elements contained in the specified elements collection, or this instance if there are no elements to remove.
Returns a new persistent set containing all elements of this set except the elements contained in the specified elements sequence, or this instance if there are no elements to remove.
Returns a new persistent list with the provided modifications applied, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with the provided modifications applied, or this instance if no modifications were made in the result of this operation.
Returns a new persistent set with the provided modifications applied, or this instance if no modifications were made in the result of this operation.
Returns an empty persistent map.
Returns a new persistent map with the specified contents, given as a list of pairs where the first component is the key and the second is the value.
Returns an empty persistent set.
Returns a new persistent set with the given elements.
Returns an empty persistent list.
Returns a new persistent list of the specified elements.
Returns an empty persistent map.
Returns a new persistent map with the specified contents, given as a list of pairs where the first component is the key and the second is the value.
Returns an empty persistent set.
Returns a new persistent set with the given elements.
Returns a new persistent collection with the specified element added, or this instance if this collection does not support duplicates and it already contains the element.
Returns a new persistent collection with elements of the specified elements array added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent collection with elements of the specified elements collection added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent collection with elements of the specified elements sequence added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent list with the specified element appended.
Returns a new persistent list with elements of the specified elements array appended, or this instance if the specified array is empty.
Returns a new persistent list with elements of the specified elements collection appended, or this instance if the specified collection is empty.
Returns a new persistent list with elements of the specified elements sequence appended, or this instance if the specified sequence is empty.
Returns a new persistent map with entries from the specified key-value pairs added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with an entry from the specified key-value pair added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with keys and values from the specified map associated, or this instance if no modifications were made in the result of this operation.
Returns a new persistent set with the specified element added, or this instance if it already contains the element.
Returns a new persistent set with elements of the specified elements array added, or this instance if it already contains every element of the specified array.
Returns a new persistent set with elements of the specified elements collection added, or this instance if it already contains every element of the specified collection.
Returns a new persistent set with elements of the specified elements sequence added, or this instance if it already contains every element of the specified sequence.
Returns a new persistent map with entries from the specified key-value pairs added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with keys and values from the specified map associated, or this instance if no modifications were made in the result of this operation.
Returns an immutable list containing all elements of this array.
Returns an immutable list containing all characters.
Returns an immutable list containing all elements of this iterable.
Returns an immutable list containing all elements of this sequence.
Returns an immutable map containing all entries from this map.
Returns an immutable set of all elements of this array.
Returns an immutable set of all characters.
Returns an immutable set of all elements of this iterable.
Returns an immutable set of all elements of this sequence.
Returns a persistent map containing all entries from this map.
Returns a persistent set of all elements of this array.
Returns a persistent set of all characters.
Returns a persistent set containing all elements from this iterable.
Returns a persistent set of all elements of this sequence.
Returns a persistent list containing all elements of this array.
Returns a persistent list containing all characters.
Returns a persistent list containing all elements of this iterable.
Returns a persistent list containing all elements of this sequence.
Returns a persistent map containing all entries from this map.
Returns a persistent set of all elements of this array.
Returns a persistent set of all characters.
Returns a persistent set of all elements of this iterable.
Returns a persistent set of all elements of this sequence.