Immutable.js Flashcards
List
Create a new immutable _____ containing the values of the provided iterable-like.
\_\_\_\_\_<T>():\_\_\_\_\_<T>\_\_\_\_\_<T>(iter: IndexedIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iter: SetIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>):\_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object):\_\_\_\_\_<T>
1 construction methods.
List
Create a new immutable List containing the values of the provided iterable-like.
List<T>(): List<T>List<T>(iter: IndexedIterable<T>): List<T>List<T>(iter: SetIterable<T>): List<T>List<K, V>(iter: KeyedIterable<K, V>): List<any>List<T>(array: Array<T>): List<T>List<T>(iterator: Iterator<T>): List<T>List<T>(iterable: Object): List<T>
List
True if the provided value is a List
List.isList(maybeList: any): boolean
2 static methods methods.
List.isList
True if the provided value is a List
List.isList(maybeList: any): boolean
List
Creates a new List containing values
.
List.of<T>(...values: T[]): List<T>
2 static methods methods.
List.of
Creates a new List containing values
.
List.of<T>(...values: T[]): List<T>
List
Returns a new List which includes value
at index
. If index
already exists in this List, it will be replaced.
\_\_\_\_\_(index: number, value: T): List<T>
13 persistent changes methods.
set
Returns a new List which includes value
at index
. If index
already exists in this List, it will be replaced.
set(index: number, value: T): List<T>
List
Returns a new List which excludes this index
and with a size 1 less than this List. Values at indicies above index
are shifted down by 1 to fill the position.
\_\_\_\_\_(index: number): List<T>
13 persistent changes methods.
delete
Returns a new List which excludes this index
and with a size 1 less than this List. Values at indicies above index
are shifted down by 1 to fill the position.
delete(index: number): List<T>
List
Returns a new List with 0 size and no values.
\_\_\_\_\_(): List<T>
13 persistent changes methods.
clear
Returns a new List with 0 size and no values.
clear(): List<T>
List
Returns a new List with the provided values
appended, starting at this List’s size
.
\_\_\_\_\_(...values: T[]): List<T>
13 persistent changes methods.
push
Returns a new List with the provided values
appended, starting at this List’s size
.
push(...values: T[]): List<T>
List
Returns a new List with a size ones less than this List, excluding the last index in this List.
\_\_\_\_\_(): List<T>
13 persistent changes methods.
pop
Returns a new List with a size ones less than this List, excluding the last index in this List.
pop(): List<T>
List
Returns a new List with the provided values
prepended, shifting other values ahead to higher indices.
\_\_\_\_\_(...values: T[]): List<T>
13 persistent changes methods.
unshift
Returns a new List with the provided values
prepended, shifting other values ahead to higher indices.
unshift(...values: T[]): List<T>
List
Returns a new List with a size ones less than this List, excluding the first index in this List, _____ing all other values to a lower index.
\_\_\_\_\_(): List<T>
13 persistent changes methods.
shift
Returns a new List with a size ones less than this List, excluding the first index in this List, shifting all other values to a lower index.
shift(): List<T>
List
Returns a new List with an _____d value at index
with the return value of calling \_\_\_\_\_r
with the existing value, or notSetValue
if index
was not set. If called with a single argument, \_\_\_\_\_r
is called with the List itself.
\_\_\_\_\_(\_\_\_\_\_r: (value: List<T>) => List<T>): List<T>\_\_\_\_\_(index: number,\_\_\_\_\_r: (value: T) => T): List<T>\_\_\_\_\_(index: number, notSetValue: T,\_\_\_\_\_r: (value: T) => T): List<T>
13 persistent changes methods.
update
Returns a new List with an updated value at index
with the return value of calling updater
with the existing value, or notSetValue
if index
was not set. If called with a single argument, updater
is called with the List itself.
update(updater: (value: List<T>) => List<T>): List<T>update(index: number, updater: (value: T) => T): List<T>update(index: number, notSetValue: T, updater: (value: T) => T): List<T>
List\_\_\_\_\_(...iterables: IndexedIterable<T>[]): List<T>\_\_\_\_\_(...iterables: Array<T>[]): List<T>
13 persistent changes methods.
mergemerge(...iterables: IndexedIterable<T>[]): List<T>merge(...iterables: Array<T>[]): List<T>
List
`_____(
merger: (previous?: T, next?: T, key?: number) => T,…iterables: IndexedIterable<T>[]</T>
): List<T>\_\_\_\_\_(
merger: (previous?: T, next?: T, key?: number) => T,...iterables: Array<T>[]</T></T>
): List<T>`</T>
13 persistent changes methods.
mergeWith
`mergeWith(
merger: (previous?: T, next?: T, key?: number) => T,…iterables: IndexedIterable<T>[]</T>
): List<T>mergeWith(
merger: (previous?: T, next?: T, key?: number) => T,...iterables: Array<T>[]</T></T>
): List<T>`</T>
List\_\_\_\_\_(...iterables: IndexedIterable<T>[]): List<T>\_\_\_\_\_(...iterables: Array<T>[]): List<T>
13 persistent changes methods.
mergeDeepmergeDeep(...iterables: IndexedIterable<T>[]): List<T>mergeDeep(...iterables: Array<T>[]): List<T>
List
`_____(
merger: (previous?: T, next?: T, key?: number) => T,…iterables: IndexedIterable<T>[]</T>
): List<T>\_\_\_\_\_(
merger: (previous?: T, next?: T, key?: number) => T,...iterables: Array<T>[]</T></T>
): List<T>`</T>
13 persistent changes methods.
mergeDeepWith
`mergeDeepWith(
merger: (previous?: T, next?: T, key?: number) => T,…iterables: IndexedIterable<T>[]</T>
): List<T>mergeDeepWith(
merger: (previous?: T, next?: T, key?: number) => T,...iterables: Array<T>[]</T></T>
): List<T>`</T>
List
Returns a new List with size size
. If size
is less than this List’s size, the new List will exclude values at the higher indices. If size
is greater than this List’s size, the new List will have undefined values for the newly available indices.
\_\_\_\_\_(size: number): List<T>
13 persistent changes methods.
setSize
Returns a new List with size size
. If size
is less than this List’s size, the new List will exclude values at the higher indices. If size
is greater than this List’s size, the new List will have undefined values for the newly available indices.
setSize(size: number): List<T>
List
Returns a new List having set value
at this keyPath
. If any keys in keyPath
do not exist, a new immutable Map will be created at that key.
\_\_\_\_\_(keyPath: Array<any>, value: any): List<T>\_\_\_\_\_(keyPath: Iterable<any, any>, value: any): List<T>
5 deep persistent changes methods.
setIn
Returns a new List having set value
at this keyPath
. If any keys in keyPath
do not exist, a new immutable Map will be created at that key.
setIn(keyPath: Array<any>, value: any): List<T>setIn(keyPath: Iterable<any, any>, value: any): List<T>
List
Returns a new List having removed the value at this keyPath
. If any keys in keyPath
do not exist, no change will occur.
\_\_\_\_\_(keyPath: Array<any>): List<T>\_\_\_\_\_(keyPath: Iterable<any, any>): List<T>
5 deep persistent changes methods.
deleteIn
Returns a new List having removed the value at this keyPath
. If any keys in keyPath
do not exist, no change will occur.
deleteIn(keyPath: Array<any>): List<T>deleteIn(keyPath: Iterable<any, any>): List<T>
List
`_____(keyPath: Array<any>, updater: (value: any) => any): List<T>\_\_\_\_\_(
keyPath: Array<any>,notSetValue: any,updater: (value: any) => any</any></T></any>
): List<T>\_\_\_\_\_(keyPath: Iterable<any, any>, updater: (value: any) => any): List<T>\_\_\_\_\_(
keyPath: Iterable<any, any>,notSetValue: any,updater: (value: any) => any</T></T>
): List<T>`</T>
5 deep persistent changes methods.
updateIn
`updateIn(keyPath: Array<any>, updater: (value: any) => any): List<T>updateIn(
keyPath: Array<any>,notSetValue: any,updater: (value: any) => any</any></T></any>
): List<T>updateIn(keyPath: Iterable<any, any>, updater: (value: any) => any): List<T>updateIn(
keyPath: Iterable<any, any>,notSetValue: any,updater: (value: any) => any</T></T>
): List<T>`</T>
List
`_____(
keyPath: Iterable<any, any>,…iterables: IndexedIterable<T>[]</T>
): List<T>\_\_\_\_\_(keyPath: Array<any>, ...iterables: IndexedIterable<T>[]): List<T>\_\_\_\_\_(keyPath: Array<any>, ...iterables: Array<T>[]): List<T>`</T></T></any></T></T></any></T>
5 deep persistent changes methods.
mergeIn
`mergeIn(
keyPath: Iterable<any, any>,…iterables: IndexedIterable<T>[]</T>
): List<T>mergeIn(keyPath: Array<any>, ...iterables: IndexedIterable<T>[]): List<T>mergeIn(keyPath: Array<any>, ...iterables: Array<T>[]): List<T>`</T></T></any></T></T></any></T>
List
`_____(
keyPath: Iterable<any, any>,…iterables: IndexedIterable<T>[]</T>
): List<T>\_\_\_\_\_(keyPath: Array<any>, ...iterables: IndexedIterable<T>[]): List<T>\_\_\_\_\_(keyPath: Array<any>, ...iterables: Array<T>[]): List<T>`</T></T></any></T></T></any></T>
5 deep persistent changes methods.
mergeDeepIn
`mergeDeepIn(
keyPath: Iterable<any, any>,…iterables: IndexedIterable<T>[]</T>
): List<T>mergeDeepIn(keyPath: Array<any>, ...iterables: IndexedIterable<T>[]): List<T>mergeDeepIn(keyPath: Array<any>, ...iterables: Array<T>[]): List<T>`</T></T></any></T></T></any></T>
List
Note: Not all methods can be used on a mutable collection or within \_\_\_\_\_
! Only set
, push
, pop
, shift
, unshift
and merge
may be used mutatively.
\_\_\_\_\_(mutator: (mutable: List<T>) => any): List<T>
3 transient changes methods.
withMutations
Note: Not all methods can be used on a mutable collection or within withMutations
! Only set
, push
, pop
, shift
, unshift
and merge
may be used mutatively.
withMutations(mutator: (mutable: List<T>) => any): List<T>
List\_\_\_\_\_(): List<T>
3 transient changes methods.
asMutableasMutable(): List<T>
List\_\_\_\_\_(): List<T>
3 transient changes methods.
asImmutableasImmutable(): List<T>
Map
Creates a new Immutable _____.
\_\_\_\_\_<K, V>():\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iter: Iterable<any, Array<any>>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(array: Array<Array<any>>):\_\_\_\_\_<K, V>\_\_\_\_\_<V>(obj: {[key: string]: V}):\_\_\_\_\_<string, V>\_\_\_\_\_<K, V>(iterator: Iterator<Array<any>>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iterable: Object):\_\_\_\_\_<K, V>
1 construction methods.
Map
Creates a new Immutable Map.
Map<K, V>(): Map<K, V>Map<K, V>(iter: KeyedIterable<K, V>): Map<K, V>Map<K, V>(iter: Iterable<any, Array<any>>): Map<K, V>Map<K, V>(array: Array<Array<any>>): Map<K, V>Map<V>(obj: {[key: string]: V}): Map<string, V>Map<K, V>(iterator: Iterator<Array<any>>): Map<K, V>Map<K, V>(iterable: Object): Map<K, V>
Map
True if the provided value is a Map
Map.isMap(maybeMap: any): boolean
1 static methods methods.
Map.isMap
True if the provided value is a Map
Map.isMap(maybeMap: any): boolean
Map
Returns a new Map also containing the new key, value pair. If an equivalent key already exists in this Map, it will be replaced.
\_\_\_\_\_(key: K, value: V): Map<K, V>
8 persistent changes methods.
set
Returns a new Map also containing the new key, value pair. If an equivalent key already exists in this Map, it will be replaced.
set(key: K, value: V): Map<K, V>
Map
Returns a new Map which excludes this key
.
\_\_\_\_\_(key: K): Map<K, V>
8 persistent changes methods.
delete
Returns a new Map which excludes this key
.
delete(key: K): Map<K, V>
Map
Returns a new Map containing no keys or values.
\_\_\_\_\_(): Map<K, V>
8 persistent changes methods.
clear
Returns a new Map containing no keys or values.
clear(): Map<K, V>
Map
Returns a new Map having _____d the value at this key
with the return value of calling \_\_\_\_\_r
with the existing value, or notSetValue
if the key was not set. If called with only a single argument, \_\_\_\_\_r
is called with the Map itself.
\_\_\_\_\_(\_\_\_\_\_r: (value: Map<K, V>) => Map<K, V>): Map<K, V>\_\_\_\_\_(key: K,\_\_\_\_\_r: (value: V) => V): Map<K, V>\_\_\_\_\_(key: K, notSetValue: V,\_\_\_\_\_r: (value: V) => V): Map<K, V>
8 persistent changes methods.
update
Returns a new Map having updated the value at this key
with the return value of calling updater
with the existing value, or notSetValue
if the key was not set. If called with only a single argument, updater
is called with the Map itself.
update(updater: (value: Map<K, V>) => Map<K, V>): Map<K, V>update(key: K, updater: (value: V) => V): Map<K, V>update(key: K, notSetValue: V, updater: (value: V) => V): Map<K, V>
Map
Returns a new Map resulting from merging the provided Iterables (or JS objects) into this Map. In other words, this takes each entry of each iterable and sets it on this Map.
\_\_\_\_\_(...iterables: Iterable<K, V>[]): Map<K, V>\_\_\_\_\_(...iterables: {[key: string]: V}[]): Map<string, V>
8 persistent changes methods.
merge
Returns a new Map resulting from merging the provided Iterables (or JS objects) into this Map. In other words, this takes each entry of each iterable and sets it on this Map.
merge(...iterables: Iterable<K, V>[]): Map<K, V>merge(...iterables: {[key: string]: V}[]): Map<string, V>
Map
Like merge()
, \_\_\_\_\_()
returns a new Map resulting from merging the provided Iterables (or JS objects) into this Map, but uses the merger
function for dealing with conflicts.
`_____(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: Iterable<K, V>[]
): Map<K, V>_____(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: {[key: string]: V}[]
): Map<string, V>`
8 persistent changes methods.
mergeWith
Like merge()
, mergeWith()
returns a new Map resulting from merging the provided Iterables (or JS objects) into this Map, but uses the merger
function for dealing with conflicts.
`mergeWith(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: Iterable<K, V>[]
): Map<K, V>mergeWith(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: {[key: string]: V}[]
): Map<string, V>`
Map
Like merge()
, but when two Iterables conflict, it merges them as well, recursing deeply through the nested data.
\_\_\_\_\_(...iterables: Iterable<K, V>[]): Map<K, V>\_\_\_\_\_(...iterables: {[key: string]: V}[]): Map<string, V>
8 persistent changes methods.
mergeDeep
Like merge()
, but when two Iterables conflict, it merges them as well, recursing deeply through the nested data.
mergeDeep(...iterables: Iterable<K, V>[]): Map<K, V>mergeDeep(...iterables: {[key: string]: V}[]): Map<string, V>
Map
Like mergeDeep()
, but when two non-Iterables conflict, it uses the merger
function to determine the resulting value.
`_____(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: Iterable<K, V>[]
): Map<K, V>_____(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: {[key: string]: V}[]
): Map<string, V>`
8 persistent changes methods.
mergeDeepWith
Like mergeDeep()
, but when two non-Iterables conflict, it uses the merger
function to determine the resulting value.
`mergeDeepWith(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: Iterable<K, V>[]
): Map<K, V>mergeDeepWith(
merger: (previous?: V, next?: V, key?: K) => V,…iterables: {[key: string]: V}[]
): Map<string, V>`
Map
Returns a new Map having set value
at this keyPath
. If any keys in keyPath
do not exist, a new immutable Map will be created at that key.
\_\_\_\_\_(keyPath: Array<any>, value: any): Map<K, V>\_\_\_\_\_(KeyPath: Iterable<any, any>, value: any): Map<K, V>
5 deep persistent changes methods.
setIn
Returns a new Map having set value
at this keyPath
. If any keys in keyPath
do not exist, a new immutable Map will be created at that key.
setIn(keyPath: Array<any>, value: any): Map<K, V>setIn(KeyPath: Iterable<any, any>, value: any): Map<K, V>
Map
Returns a new Map having removed the value at this keyPath
. If any keys in keyPath
do not exist, no change will occur.
\_\_\_\_\_(keyPath: Array<any>): Map<K, V>\_\_\_\_\_(keyPath: Iterable<any, any>): Map<K, V>
5 deep persistent changes methods.
deleteIn
Returns a new Map having removed the value at this keyPath
. If any keys in keyPath
do not exist, no change will occur.
deleteIn(keyPath: Array<any>): Map<K, V>deleteIn(keyPath: Iterable<any, any>): Map<K, V>
Map
Returns a new Map having applied the updater
to the entry found at the keyPath.
`_____(keyPath: Array<any>, updater: (value: any) => any): Map<K, V>\_\_\_\_\_(
keyPath: Array<any>,notSetValue: any,updater: (value: any) => any</any></any>
): Map<K, V>_____(keyPath: Iterable<any, any>, updater: (value: any) => any): Map<K, V>_____(
keyPath: Iterable<any, any>,notSetValue: any,updater: (value: any) => any
): Map<K, V>`
5 deep persistent changes methods.
updateIn
Returns a new Map having applied the updater
to the entry found at the keyPath.
`updateIn(keyPath: Array<any>, updater: (value: any) => any): Map<K, V>updateIn(
keyPath: Array<any>,notSetValue: any,updater: (value: any) => any</any></any>
): Map<K, V>updateIn(keyPath: Iterable<any, any>, updater: (value: any) => any): Map<K, V>updateIn(
keyPath: Iterable<any, any>,notSetValue: any,updater: (value: any) => any
): Map<K, V>`
Map
A combination of updateIn
and merge
, returning a new Map, but performing the merge at a point arrived at by following the keyPath. In other words, these two lines are equivalent:
\_\_\_\_\_(keyPath: Iterable<any, any>, ...iterables: Iterable<K, V>[]): Map<K, V>\_\_\_\_\_(keyPath: Array<any>, ...iterables: Iterable<K, V>[]): Map<K, V>\_\_\_\_\_(keyPath: Array<any>, ...iterables: {[key: string]: V}[]): Map<string, V>
5 deep persistent changes methods.
mergeIn
A combination of updateIn
and merge
, returning a new Map, but performing the merge at a point arrived at by following the keyPath. In other words, these two lines are equivalent:
mergeIn(keyPath: Iterable<any, any>, ...iterables: Iterable<K, V>[]): Map<K, V>mergeIn(keyPath: Array<any>, ...iterables: Iterable<K, V>[]): Map<K, V>mergeIn(keyPath: Array<any>, ...iterables: {[key: string]: V}[]): Map<string, V>
Map
A combination of updateIn
and mergeDeep
, returning a new Map, but performing the deep merge at a point arrived at by following the keyPath. In other words, these two lines are equivalent:
`_____(
keyPath: Iterable<any, any>,…iterables: Iterable<K, V>[]
): Map<K, V>_____(keyPath: Array<any>, ...iterables: Iterable<K, V>[]): Map<K, V>\_\_\_\_\_(
keyPath: Array<any>,...iterables: {[key: string]: V}[]</any></any>
): Map<string, V>`
5 deep persistent changes methods.
mergeDeepIn
A combination of updateIn
and mergeDeep
, returning a new Map, but performing the deep merge at a point arrived at by following the keyPath. In other words, these two lines are equivalent:
`mergeDeepIn(
keyPath: Iterable<any, any>,…iterables: Iterable<K, V>[]
): Map<K, V>mergeDeepIn(keyPath: Array<any>, ...iterables: Iterable<K, V>[]): Map<K, V>mergeDeepIn(
keyPath: Array<any>,...iterables: {[key: string]: V}[]</any></any>
): Map<string, V>`
Map
Every time you call one of the above functions, a new immutable Map is created. If a pure function calls a number of these to produce a final return value, then a penalty on performance and memory has been paid by creating all of the intermediate immutable Maps.
\_\_\_\_\_(mutator: (mutable: Map<K, V>) => any): Map<K, V>
3 transient changes methods.
withMutations
Every time you call one of the above functions, a new immutable Map is created. If a pure function calls a number of these to produce a final return value, then a penalty on performance and memory has been paid by creating all of the intermediate immutable Maps.
withMutations(mutator: (mutable: Map<K, V>) => any): Map<K, V>
Map
Another way to avoid creation of intermediate Immutable maps is to create a mutable copy of this collection. Mutable copies always return this
, and thus shouldn’t be used for equality. Your function should never return a mutable copy of a collection, only use it internally to create a new collection. If possible, use withMutations
as it provides an easier to use API.
\_\_\_\_\_(): Map<K, V>
3 transient changes methods.
asMutable
Another way to avoid creation of intermediate Immutable maps is to create a mutable copy of this collection. Mutable copies always return this
, and thus shouldn’t be used for equality. Your function should never return a mutable copy of a collection, only use it internally to create a new collection. If possible, use withMutations
as it provides an easier to use API.
asMutable(): Map<K, V>
Map
The yin to asMutable
’s yang. Because it applies to mutable collections, this operation is mutable and returns itself. Once performed, the mutable copy has become immutable and can be safely returned from a function.
\_\_\_\_\_(): Map<K, V>
3 transient changes methods.
asImmutable
The yin to asMutable
’s yang. Because it applies to mutable collections, this operation is mutable and returns itself. Once performed, the mutable copy has become immutable and can be safely returned from a function.
asImmutable(): Map<K, V>
OrderedMap
Creates a new Immutable _____.
\_\_\_\_\_<K, V>():\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iter: Iterable<any, Array<any>>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(array: Array<Array<any>>):\_\_\_\_\_<K, V>\_\_\_\_\_<V>(obj: {[key: string]: V}):\_\_\_\_\_<string, V>\_\_\_\_\_<K, V>(iterator: Iterator<Array<any>>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iterable: Object):\_\_\_\_\_<K, V>
1 construction methods.
OrderedMap
Creates a new Immutable OrderedMap.
OrderedMap<K, V>(): OrderedMap<K, V>OrderedMap<K, V>(iter: KeyedIterable<K, V>): OrderedMap<K, V>OrderedMap<K, V>(iter: Iterable<any, Array<any>>): OrderedMap<K, V>OrderedMap<K, V>(array: Array<Array<any>>): OrderedMap<K, V>OrderedMap<V>(obj: {[key: string]: V}): OrderedMap<string, V>OrderedMap<K, V>(iterator: Iterator<Array<any>>): OrderedMap<K, V>OrderedMap<K, V>(iterable: Object): OrderedMap<K, V>
OrderedMap
True if the provided value is an OrderedMap.
OrderedMap.isOrderedMap(maybeOrderedMap: any): boolean
1 static methods methods.
OrderedMap.isOrderedMap
True if the provided value is an OrderedMap.
OrderedMap.isOrderedMap(maybeOrderedMap: any): boolean
Set
Create a new immutable _____ containing the values of the provided iterable-like.
\_\_\_\_\_<T>():\_\_\_\_\_<T>\_\_\_\_\_<T>(iter:\_\_\_\_\_Iterable<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iter: IndexedIterable<T>): \_\_\_\_\_<T>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>): \_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object): \_\_\_\_\_<T>
1 construction methods.
Set
Create a new immutable Set containing the values of the provided iterable-like.
Set<T>(): Set<T>Set<T>(iter: SetIterable<T>): Set<T>Set<T>(iter: IndexedIterable<T>): Set<T>Set<K, V>(iter: KeyedIterable<K, V>): Set<any>Set<T>(array: Array<T>): Set<T>Set<T>(iterator: Iterator<T>): Set<T>Set<T>(iterable: Object): Set<T>
Set
True if the provided value is a Set
Set.isSet(maybeSet: any): boolean
3 static methods methods.
Set.isSet
True if the provided value is a Set
Set.isSet(maybeSet: any): boolean
Set
Creates a new Set containing values
.
Set.of<T>(...values: T[]): Set<T>
3 static methods methods.
Set.of
Creates a new Set containing values
.
Set.of<T>(...values: T[]): Set<T>
Set
Set.fromKeys()
creates a new immutable Set containing the keys from this Iterable or JavaScript Object.
Set.fromKeys<T>(iter: Iterable<T, any>): Set<T>Set.fromKeys(obj: {[key: string]: any}): Set<string>
3 static methods methods.
Set.fromKeys
Set.fromKeys()
creates a new immutable Set containing the keys from this Iterable or JavaScript Object.
Set.fromKeys<T>(iter: Iterable<T, any>): Set<T>Set.fromKeys(obj: {[key: string]: any}): Set<string>
Set
Returns a new Set which also includes this value.
\_\_\_\_\_(value: T): Set<T>
6 persistent changes methods.
add
Returns a new Set which also includes this value.
add(value: T): Set<T>
Set
Returns a new Set which excludes this value.
\_\_\_\_\_(value: T): Set<T>
6 persistent changes methods.
delete
Returns a new Set which excludes this value.
delete(value: T): Set<T>
Set
Returns a new Set containing no values.
\_\_\_\_\_(): Set<T>
6 persistent changes methods.
clear
Returns a new Set containing no values.
clear(): Set<T>
Set
Returns a Set including any value from iterables
that does not already exist in this Set.
\_\_\_\_\_(...iterables: Iterable<any, T>[]): Set<T>\_\_\_\_\_(...iterables: Array<T>[]): Set<T>
6 persistent changes methods.
union
Returns a Set including any value from iterables
that does not already exist in this Set.
union(...iterables: Iterable<any, T>[]): Set<T>union(...iterables: Array<T>[]): Set<T>
Set
Returns a Set which has removed any values not also contained within iterables
.
\_\_\_\_\_(...iterables: Iterable<any, T>[]): Set<T>\_\_\_\_\_(...iterables: Array<T>[]): Set<T>
6 persistent changes methods.
intersect
Returns a Set which has removed any values not also contained within iterables
.
intersect(...iterables: Iterable<any, T>[]): Set<T>intersect(...iterables: Array<T>[]): Set<T>
Set
Returns a Set excluding any values contained within iterables
.
\_\_\_\_\_(...iterables: Iterable<any, T>[]): Set<T>\_\_\_\_\_(...iterables: Array<T>[]): Set<T>
6 persistent changes methods.
subtract
Returns a Set excluding any values contained within iterables
.
subtract(...iterables: Iterable<any, T>[]): Set<T>subtract(...iterables: Array<T>[]): Set<T>
Set
Note: Not all methods can be used on a mutable collection or within \_\_\_\_\_
! Only add
may be used mutatively.
\_\_\_\_\_(mutator: (mutable: Set<T>) => any): Set<T>
3 transient changes methods.
withMutations
Note: Not all methods can be used on a mutable collection or within withMutations
! Only add
may be used mutatively.
withMutations(mutator: (mutable: Set<T>) => any): Set<T>
Set\_\_\_\_\_(): Set<T>
3 transient changes methods.
asMutableasMutable(): Set<T>
Set\_\_\_\_\_(): Set<T>
3 transient changes methods.
asImmutableasImmutable(): Set<T>
OrderedSet
Create a new immutable _____ containing the values of the provided iterable-like.
\_\_\_\_\_<T>():\_\_\_\_\_<T>\_\_\_\_\_<T>(iter: SetIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iter: IndexedIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>):\_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object):\_\_\_\_\_<T>
1 construction methods.
OrderedSet
Create a new immutable OrderedSet containing the values of the provided iterable-like.
OrderedSet<T>(): OrderedSet<T>OrderedSet<T>(iter: SetIterable<T>): OrderedSet<T>OrderedSet<T>(iter: IndexedIterable<T>): OrderedSet<T>OrderedSet<K, V>(iter: KeyedIterable<K, V>): OrderedSet<any>OrderedSet<T>(array: Array<T>): OrderedSet<T>OrderedSet<T>(iterator: Iterator<T>): OrderedSet<T>OrderedSet<T>(iterable: Object): OrderedSet<T>
OrderedSet
True if the provided value is an OrderedSet.
OrderedSet.isOrderedSet(maybeOrderedSet: any): boolean
3 static methods methods.
OrderedSet.isOrderedSet
True if the provided value is an OrderedSet.
OrderedSet.isOrderedSet(maybeOrderedSet: any): boolean
OrderedSet
Creates a new OrderedSet containing values
.
OrderedSet.of<T>(...values: T[]): OrderedSet<T>
3 static methods methods.
OrderedSet.of
Creates a new OrderedSet containing values
.
OrderedSet.of<T>(...values: T[]): OrderedSet<T>
OrderedSet
OrderedSet.fromKeys()
creates a new immutable OrderedSet containing the keys from this Iterable or JavaScript Object.
OrderedSet.fromKeys<T>(iter: Iterable<T, any>): OrderedSet<T>OrderedSet.fromKeys(obj: {[key: string]: any}): OrderedSet<string>
3 static methods methods.
OrderedSet.fromKeys
OrderedSet.fromKeys()
creates a new immutable OrderedSet containing the keys from this Iterable or JavaScript Object.
OrderedSet.fromKeys<T>(iter: Iterable<T, any>): OrderedSet<T>OrderedSet.fromKeys(obj: {[key: string]: any}): OrderedSet<string>
Stack
Create a new immutable _____ containing the values of the provided iterable-like.
\_\_\_\_\_<T>():\_\_\_\_\_<T>\_\_\_\_\_<T>(iter: IndexedIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iter: SetIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>):\_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object):\_\_\_\_\_<T>
1 construction methods.
Stack
Create a new immutable Stack containing the values of the provided iterable-like.
Stack<T>(): Stack<T>Stack<T>(iter: IndexedIterable<T>): Stack<T>Stack<T>(iter: SetIterable<T>): Stack<T>Stack<K, V>(iter: KeyedIterable<K, V>): Stack<any>Stack<T>(array: Array<T>): Stack<T>Stack<T>(iterator: Iterator<T>): Stack<T>Stack<T>(iterable: Object): Stack<T>
Stack
True if the provided value is a Stack
Stack.isStack(maybeStack: any): boolean
2 static methods methods.
Stack.isStack
True if the provided value is a Stack
Stack.isStack(maybeStack: any): boolean
Stack
Creates a new Stack containing values
.
Stack.of<T>(...values: T[]): Stack<T>
2 static methods methods.
Stack.of
Creates a new Stack containing values
.
Stack.of<T>(...values: T[]): Stack<T>
Stack
Alias for Stack.first()
.
\_\_\_\_\_(): T
6 reading values methods.
peek
Alias for Stack.first()
.
peek(): T
Stack
Returns a new Stack with 0 size and no values.
\_\_\_\_\_(): Stack<T>
7 persistent changes methods.
clear
Returns a new Stack with 0 size and no values.
clear(): Stack<T>
Stack
Returns a new Stack with the provided values
prepended, shifting other values ahead to higher indices.
\_\_\_\_\_(...values: T[]): Stack<T>
7 persistent changes methods.
unshift
Returns a new Stack with the provided values
prepended, shifting other values ahead to higher indices.
unshift(...values: T[]): Stack<T>
Stack
Like Stack#unshift
, but accepts a iterable rather than varargs.
\_\_\_\_\_(iter: Iterable<any, T>): Stack<T>\_\_\_\_\_(iter: Array<T>): Stack<T>
7 persistent changes methods.
unshiftAll
Like Stack#unshift
, but accepts a iterable rather than varargs.
unshiftAll(iter: Iterable<any, T>): Stack<T>unshiftAll(iter: Array<T>): Stack<T>
Stack
Returns a new Stack with a size ones less than this Stack, excluding the first item in this Stack, _____ing all other values to a lower index.
\_\_\_\_\_(): Stack<T>
7 persistent changes methods.
shift
Returns a new Stack with a size ones less than this Stack, excluding the first item in this Stack, shifting all other values to a lower index.
shift(): Stack<T>
Stack
Alias for Stack#unshift
and is not equivalent to List#\_\_\_\_\_
.
\_\_\_\_\_(...values: T[]): Stack<T>
7 persistent changes methods.
push
Alias for Stack#unshift
and is not equivalent to List#push
.
push(...values: T[]): Stack<T>
Stack
Alias for Stack#unshiftAll
.
\_\_\_\_\_(iter: Iterable<any, T>): Stack<T>\_\_\_\_\_(iter: Array<T>): Stack<T>
7 persistent changes methods.
pushAll
Alias for Stack#unshiftAll
.
pushAll(iter: Iterable<any, T>): Stack<T>pushAll(iter: Array<T>): Stack<T>
Stack
Alias for Stack#shift
and is not equivalent to List#\_\_\_\_\_
.
\_\_\_\_\_(): Stack<T>
7 persistent changes methods.
pop
Alias for Stack#shift
and is not equivalent to List#pop
.
pop(): Stack<T>
Stack
Note: Not all methods can be used on a mutable collection or within \_\_\_\_\_
! Only set
, push
, and pop
may be used mutatively.
\_\_\_\_\_(mutator: (mutable: Stack<T>) => any): Stack<T>
3 transient changes methods.
withMutations
Note: Not all methods can be used on a mutable collection or within withMutations
! Only set
, push
, and pop
may be used mutatively.
withMutations(mutator: (mutable: Stack<T>) => any): Stack<T>
Stack\_\_\_\_\_(): Stack<T>
3 transient changes methods.
asMutableasMutable(): Stack<T>
Stack\_\_\_\_\_(): Stack<T>
3 transient changes methods.
asImmutableasImmutable(): Stack<T>
Record\_\_\_\_\_(defaultValues: {[key: string]: any}, name?: string):\_\_\_\_\_.Class
1 construction methods.
RecordRecord(defaultValues: {[key: string]: any}, name?: string): Record.Class
Seq
Creates a _____.
\_\_\_\_\_<K, V>():\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(seq:\_\_\_\_\_<K, V>): \_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iterable: Iterable<K, V>): \_\_\_\_\_<K, V>\_\_\_\_\_<T>(array: Array<T>): Indexed\_\_\_\_\_<T>\_\_\_\_\_<V>(obj: {[key: string]: V}): Keyed\_\_\_\_\_<string, V>\_\_\_\_\_<T>(iterator: Iterator<T>): Indexed\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object): Indexed\_\_\_\_\_<T>
1 construction methods.
Seq
Creates a Seq.
Seq<K, V>(): Seq<K, V>Seq<K, V>(seq: Seq<K, V>): Seq<K, V>Seq<K, V>(iterable: Iterable<K, V>): Seq<K, V>Seq<T>(array: Array<T>): IndexedSeq<T>Seq<V>(obj: {[key: string]: V}): KeyedSeq<string, V>Seq<T>(iterator: Iterator<T>): IndexedSeq<T>Seq<T>(iterable: Object): IndexedSeq<T>
Seq
True if maybeSeq
is a Seq, it is not backed by a concrete structure such as Map, List, or Set.
Seq.isSeq(maybeSeq: any): boolean
2 static methods methods.
Seq.isSeq
True if maybeSeq
is a Seq, it is not backed by a concrete structure such as Map, List, or Set.
Seq.isSeq(maybeSeq: any): boolean
Seq
Returns a _____ the values provided. Alias for Indexed\_\_\_\_\_()
.
Seq.of<T>(...values: T[]): IndexedSeq<T>
2 static methods methods.
Seq.of
Returns a Seq of the values provided. Alias for IndexedSeq.of()
.
Seq.of<T>(...values: T[]): IndexedSeq<T>
Seq\_\_\_\_\_ze: number
1 members methods.
sisize: number
Seq
Because Sequences are lazy and designed to be chained together, they do not cache their results. For example, this map function is called a total of 6 times, as each join
iterates the Seq of three values.
\_\_\_\_\_(): Seq<K, V>
1 force evaluation methods.
cacheResult
Because Sequences are lazy and designed to be chained together, they do not cache their results. For example, this map function is called a total of 6 times, as each join
iterates the Seq of three values.
cacheResult(): Seq<K, V>
KeyedSeq
Always returns a _____, if input is not keyed, expects an iterable of [K, V] tuples.
\_\_\_\_\_<K, V>():\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(seq: KeyedIterable<K, V>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(seq: Iterable<any, any>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(array: Array<any>):\_\_\_\_\_<K, V>\_\_\_\_\_<V>(obj: {[key: string]: V}):\_\_\_\_\_<string, V>\_\_\_\_\_<K, V>(iterator: Iterator<any>):\_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iterable: Object):\_\_\_\_\_<K, V>
1 construction methods.
KeyedSeq
Always returns a KeyedSeq, if input is not keyed, expects an iterable of [K, V] tuples.
KeyedSeq<K, V>(): KeyedSeq<K, V>KeyedSeq<K, V>(seq: KeyedIterable<K, V>): KeyedSeq<K, V>KeyedSeq<K, V>(seq: Iterable<any, any>): KeyedSeq<K, V>KeyedSeq<K, V>(array: Array<any>): KeyedSeq<K, V>KeyedSeq<V>(obj: {[key: string]: V}): KeyedSeq<string, V>KeyedSeq<K, V>(iterator: Iterator<any>): KeyedSeq<K, V>KeyedSeq<K, V>(iterable: Object): KeyedSeq<K, V>
KeyedSeq
Returns itself
\_\_\_\_\_(): KeyedSeq<K, V>
4 conversion to seq methods.
toSeq
Returns itself
toSeq(): KeyedSeq<K, V>
IndexedSeq
Always returns _____, discarding associated keys and supplying incrementing indices.
\_\_\_\_\_<T>():\_\_\_\_\_<T>\_\_\_\_\_<T>(seq: IndexedIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(seq: SetIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<K, V>(seq: KeyedIterable<K, V>):\_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object):\_\_\_\_\_<T>
1 construction methods.
IndexedSeq
Always returns IndexedSeq, discarding associated keys and supplying incrementing indices.
IndexedSeq<T>(): IndexedSeq<T>IndexedSeq<T>(seq: IndexedIterable<T>): IndexedSeq<T>IndexedSeq<T>(seq: SetIterable<T>): IndexedSeq<T>IndexedSeq<K, V>(seq: KeyedIterable<K, V>): IndexedSeq<any>IndexedSeq<T>(array: Array<T>): IndexedSeq<T>IndexedSeq<T>(iterator: Iterator<T>): IndexedSeq<T>IndexedSeq<T>(iterable: Object): IndexedSeq<T>
IndexedSeq
Provides an _____ the values provided.
IndexedSeq.of<T>(...values: T[]): IndexedSeq<T>
1 static methods methods.
IndexedSeq.of
Provides an IndexedSeq of the values provided.
IndexedSeq.of<T>(...values: T[]): IndexedSeq<T>
IndexedSeq
Returns itself
\_\_\_\_\_(): IndexedSeq<T>
5 conversion to seq methods.
toSeq
Returns itself
toSeq(): IndexedSeq<T>
SetSeq
Always returns a _____, discarding associated indices or keys.
\_\_\_\_\_<T>():\_\_\_\_\_<T>\_\_\_\_\_<T>(seq: SetIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(seq: IndexedIterable<T>):\_\_\_\_\_<T>\_\_\_\_\_<K, V>(seq: KeyedIterable<K, V>):\_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>):\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object):\_\_\_\_\_<T>
1 construction methods.
SetSeq
Always returns a SetSeq, discarding associated indices or keys.
SetSeq<T>(): SetSeq<T>SetSeq<T>(seq: SetIterable<T>): SetSeq<T>SetSeq<T>(seq: IndexedIterable<T>): SetSeq<T>SetSeq<K, V>(seq: KeyedIterable<K, V>): SetSeq<any>SetSeq<T>(array: Array<T>): SetSeq<T>SetSeq<T>(iterator: Iterator<T>): SetSeq<T>SetSeq<T>(iterable: Object): SetSeq<T>
SetSeq
Returns a _____ the provided values
SetSeq.of<T>(...values: T[]): SetSeq<T>
1 static methods methods.
SetSeq.of
Returns a SetSeq of the provided values
SetSeq.of<T>(...values: T[]): SetSeq<T>
SetSeq
Returns itself
\_\_\_\_\_(): SetSeq<T>
4 conversion to seq methods.
toSeq
Returns itself
toSeq(): SetSeq<T>
Iterable
Creates an _____.
\_\_\_\_\_<K, V>(iterable:\_\_\_\_\_<K, V>): \_\_\_\_\_<K, V>\_\_\_\_\_<T>(array: Array<T>): Indexed\_\_\_\_\_<T>\_\_\_\_\_<V>(obj: {[key: string]: V}): Keyed\_\_\_\_\_<string, V>\_\_\_\_\_<T>(iterator: Iterator<T>): Indexed\_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object): Indexed\_\_\_\_\_<T>\_\_\_\_\_<V>(value: V): Indexed\_\_\_\_\_<V>
1 construction methods.
Iterable
Creates an Iterable.
Iterable<K, V>(iterable: Iterable<K, V>): Iterable<K, V>Iterable<T>(array: Array<T>): IndexedIterable<T>Iterable<V>(obj: {[key: string]: V}): KeyedIterable<string, V>Iterable<T>(iterator: Iterator<T>): IndexedIterable<T>Iterable<T>(iterable: Object): IndexedIterable<T>Iterable<V>(value: V): IndexedIterable<V>
Iterable
True if maybeIterable
is an Iterable, or any of its subclasses.
Iterable.isIterable(maybeIterable: any): boolean
5 static methods methods.
Iterable.isIterable
True if maybeIterable
is an Iterable, or any of its subclasses.
Iterable.isIterable(maybeIterable: any): boolean
Iterable
True if maybeKeyed
is a KeyedIterable, or any of its subclasses.
Iterable.isKeyed(maybeKeyed: any): boolean
5 static methods methods.
Iterable.isKeyed
True if maybeKeyed
is a KeyedIterable, or any of its subclasses.
Iterable.isKeyed(maybeKeyed: any): boolean
Iterable
True if maybeIndexed
is a IndexedIterable, or any of its subclasses.
Iterable.isIndexed(maybeIndexed: any): boolean
5 static methods methods.
Iterable.isIndexed
True if maybeIndexed
is a IndexedIterable, or any of its subclasses.
Iterable.isIndexed(maybeIndexed: any): boolean
Iterable
True if maybeAssociative
is either a keyed or indexed Iterable.
Iterable.isAssociative(maybeAssociative: any): boolean
5 static methods methods.
Iterable.isAssociative
True if maybeAssociative
is either a keyed or indexed Iterable.
Iterable.isAssociative(maybeAssociative: any): boolean
Iterable
True if maybeOrdered
is an Iterable where iteration order is well defined. True for IndexedIterable as well as OrderedMap and OrderedSet.
Iterable.isOrdered(maybeOrdered: any): boolean
5 static methods methods.
Iterable.isOrdered
True if maybeOrdered
is an Iterable where iteration order is well defined. True for IndexedIterable as well as OrderedMap and OrderedSet.
Iterable.isOrdered(maybeOrdered: any): boolean
Iterable
True if this and the other Iterable have value equality, as defined by Immutable.is()
.
\_\_\_\_\_(other: Iterable<K, V>): boolean
2 value equality methods.
equals
True if this and the other Iterable have value equality, as defined by Immutable.is()
.
equals(other: Iterable<K, V>): boolean
Iterable
Computes and returns the hashed identity for this Iterable.
\_\_\_\_\_(): number
2 value equality methods.
hashCode
Computes and returns the hashed identity for this Iterable.
hashCode(): number
Iterable
Returns the value associated with the provided key, or notSetValue if the Iterable does not contain this key.
\_\_\_\_\_(key: K, notSetValue?: V): V
5 reading values methods.
get
Returns the value associated with the provided key, or notSetValue if the Iterable does not contain this key.
get(key: K, notSetValue?: V): V
Iterable
True if a key exists within this Iterable
.
\_\_\_\_\_(key: K): boolean
5 reading values methods.
has
True if a key exists within this Iterable
.
has(key: K): boolean
Iterable
True if a value exists within this Iterable
.
\_\_\_\_\_(value: V): boolean
5 reading values methods.
includes
True if a value exists within this Iterable
.
includes(value: V): boolean
Iterable
The _____ value in the Iterable.
\_\_\_\_\_(): V
5 reading values methods.
first
The first value in the Iterable.
first(): V
Iterable
The _____ value in the Iterable.
\_\_\_\_\_(): V
5 reading values methods.
last
The last value in the Iterable.
last(): V
Iterable
Returns the value found by following a path of keys or indices through nested Iterables.
\_\_\_\_\_(searchKeyPath: Array<any>, notSetValue?: any): any\_\_\_\_\_(searchKeyPath: Iterable<any, any>, notSetValue?: any): any
2 reading deep values methods.
getIn
Returns the value found by following a path of keys or indices through nested Iterables.
getIn(searchKeyPath: Array<any>, notSetValue?: any): anygetIn(searchKeyPath: Iterable<any, any>, notSetValue?: any): any
Iterable
True if the result of following a path of keys or indices through nested Iterables results in a set value.
\_\_\_\_\_(searchKeyPath: Array<any>): boolean\_\_\_\_\_(searchKeyPath: Iterable<any, any>): boolean
2 reading deep values methods.
hasIn
True if the result of following a path of keys or indices through nested Iterables results in a set value.
hasIn(searchKeyPath: Array<any>): booleanhasIn(searchKeyPath: Iterable<any, any>): boolean
Iterable
Deeply converts this Iterable to equivalent JS.
\_\_\_\_\_(): any
3 conversion to javascript types methods.
toJS
Deeply converts this Iterable to equivalent JS.
toJS(): any
Iterable
Shallowly converts this iterable to an Array, discarding keys.
\_\_\_\_\_(): Array<V>
3 conversion to javascript types methods.
toArray
Shallowly converts this iterable to an Array, discarding keys.
toArray(): Array<V>
Iterable
Shallowly converts this Iterable to an Object.
\_\_\_\_\_(): {[key: string]: V}
3 conversion to javascript types methods.
toObject
Shallowly converts this Iterable to an Object.
toObject(): {[key: string]: V}
Iterable
Converts this Iterable to a Map, Throws if keys are not hashable.
\_\_\_\_\_(): Map<K, V>
6 conversion to collections methods.
toMap
Converts this Iterable to a Map, Throws if keys are not hashable.
toMap(): Map<K, V>
Iterable
Converts this Iterable to a Map, maintaining the order of iteration.
\_\_\_\_\_(): Map<K, V>
6 conversion to collections methods.
toOrderedMap
Converts this Iterable to a Map, maintaining the order of iteration.
toOrderedMap(): Map<K, V>
Iterable
Converts this Iterable to a Set, discarding keys. Throws if values are not hashable.
\_\_\_\_\_(): Set<V>
6 conversion to collections methods.
toSet
Converts this Iterable to a Set, discarding keys. Throws if values are not hashable.
toSet(): Set<V>
Iterable
Converts this Iterable to a Set, maintaining the order of iteration and discarding keys.
\_\_\_\_\_(): Set<V>
6 conversion to collections methods.
toOrderedSet
Converts this Iterable to a Set, maintaining the order of iteration and discarding keys.
toOrderedSet(): Set<V>
Iterable
Converts this Iterable to a List, discarding keys.
\_\_\_\_\_(): List<V>
6 conversion to collections methods.
toList
Converts this Iterable to a List, discarding keys.
toList(): List<V>
Iterable
Converts this Iterable to a Stack, discarding keys. Throws if values are not hashable.
\_\_\_\_\_(): Stack<V>
6 conversion to collections methods.
toStack
Converts this Iterable to a Stack, discarding keys. Throws if values are not hashable.
toStack(): Stack<V>
Iterable
Converts this Iterable to a Seq of the same kind (indexed, keyed, or set).
\_\_\_\_\_(): Seq<K, V>
4 conversion to seq methods.
toSeq
Converts this Iterable to a Seq of the same kind (indexed, keyed, or set).
toSeq(): Seq<K, V>
Iterable
Returns a KeyedSeq from this Iterable where indices are treated as keys.
\_\_\_\_\_(): KeyedSeq<K, V>
4 conversion to seq methods.
toKeyedSeq
Returns a KeyedSeq from this Iterable where indices are treated as keys.
toKeyedSeq(): KeyedSeq<K, V>
Iterable
Returns an IndexedSeq of the values of this Iterable, discarding keys.
\_\_\_\_\_(): IndexedSeq<V>
4 conversion to seq methods.
toIndexedSeq
Returns an IndexedSeq of the values of this Iterable, discarding keys.
toIndexedSeq(): IndexedSeq<V>
Iterable
Returns a SetSeq of the values of this Iterable, discarding keys.
\_\_\_\_\_(): SetSeq<V>
4 conversion to seq methods.
toSetSeq
Returns a SetSeq of the values of this Iterable, discarding keys.
toSetSeq(): SetSeq<V>
Iterable
An iterator of this Iterable
’s _____.
\_\_\_\_\_(): Iterator<K>
3 iterators methods.
keys
An iterator of this Iterable
’s keys.
keys(): Iterator<K>
Iterable
An iterator of this Iterable
’s _____.
\_\_\_\_\_(): Iterator<V>
3 iterators methods.
values
An iterator of this Iterable
’s values.
values(): Iterator<V>
Iterable
An iterator of this Iterable
’s _____ as [key, value]
tuples.
\_\_\_\_\_(): Iterator<Array<any>>
3 iterators methods.
entries
An iterator of this Iterable
’s entries as [key, value]
tuples.
entries(): Iterator<Array<any>>
Iterable
Returns a new IndexedSeq of the keys of this Iterable, discarding values.
\_\_\_\_\_(): IndexedSeq<K>
3 iterables (seq) methods.
keySeq
Returns a new IndexedSeq of the keys of this Iterable, discarding values.
keySeq(): IndexedSeq<K>
Iterable
Returns an IndexedSeq of the values of this Iterable, discarding keys.
\_\_\_\_\_(): IndexedSeq<V>
3 iterables (seq) methods.
valueSeq
Returns an IndexedSeq of the values of this Iterable, discarding keys.
valueSeq(): IndexedSeq<V>
Iterable
Returns a new IndexedSeq of [key, value] tuples.
\_\_\_\_\_(): IndexedSeq<Array<any>>
3 iterables (seq) methods.
entrySeq
Returns a new IndexedSeq of [key, value] tuples.
entrySeq(): IndexedSeq<Array<any>>
Iterable
Returns a new Iterable of the same type with values passed through a \_\_\_\_\_per
function.
`_____<M>(
\_\_\_\_\_per: (value?: V, key?: K, iter?: Iterable<K, V>) => M,context?: any</M>
): Iterable<K, M>`
7 sequence algorithms methods.
map
Returns a new Iterable of the same type with values passed through a mapper
function.
`map<M>(
mapper: (value?: V, key?: K, iter?: Iterable<K, V>) => M,context?: any</M>
): Iterable<K, M>`
Iterable
Returns a new Iterable of the same type with only the entries for which the predicate
function returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
7 sequence algorithms methods.
filter
Returns a new Iterable of the same type with only the entries for which the predicate
function returns true.
`filter(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
Iterable
Returns a new Iterable of the same type with only the entries for which the predicate
function returns false.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
7 sequence algorithms methods.
filterNot
Returns a new Iterable of the same type with only the entries for which the predicate
function returns false.
`filterNot(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
Iterable
Returns a new Iterable of the same type in _____ order.
\_\_\_\_\_(): Iterable<K, V>
7 sequence algorithms methods.
reverse
Returns a new Iterable of the same type in reverse order.
reverse(): Iterable<K, V>
Iterable
Returns a new Iterable of the same type which includes the same entries, stably _____ed by using a comparator
.
\_\_\_\_\_(comparator?: (valueA: V, valueB: V) => number): Iterable<K, V>
7 sequence algorithms methods.
sort
Returns a new Iterable of the same type which includes the same entries, stably sorted by using a comparator
.
sort(comparator?: (valueA: V, valueB: V) => number): Iterable<K, V>
Iterable
Like sort
, but also accepts a comparatorValueMapper
which allows for sorting by more sophisticated means:
`_____<C>(
comparatorValueMapper: (value?: V, key?: K, iter?: Iterable<K, V>) => C,comparator?: (valueA: C, valueB: C) => number</C>
): Iterable<K, V>`
7 sequence algorithms methods.
sortBy
Like sort
, but also accepts a comparatorValueMapper
which allows for sorting by more sophisticated means:
`sortBy<C>(
comparatorValueMapper: (value?: V, key?: K, iter?: Iterable<K, V>) => C,comparator?: (valueA: C, valueB: C) => number</C>
): Iterable<K, V>`
Iterable
Returns a KeyedIterable
of KeyedIterables
, grouped by the return value of the grouper
function.
`_____<G>(
grouper: (value?: V, key?: K, iter?: Iterable<K, V>) => G,context?: any</G>
): KeyedSeq<G, Iterable<K, V»`
7 sequence algorithms methods.
groupBy
Returns a KeyedIterable
of KeyedIterables
, grouped by the return value of the grouper
function.
`groupBy<G>(
grouper: (value?: V, key?: K, iter?: Iterable<K, V>) => G,context?: any</G>
): KeyedSeq<G, Iterable<K, V»`
Iterable
The sideEffect
is executed for every entry in the Iterable.
`_____(
sideEffect: (value?: V, key?: K, iter?: Iterable<K, V>) => any,context?: any
): number`
1 side effects methods.
forEach
The sideEffect
is executed for every entry in the Iterable.
`forEach(
sideEffect: (value?: V, key?: K, iter?: Iterable<K, V>) => any,context?: any
): number`
Iterable
Returns a new Iterable of the same type representing a portion of this Iterable from start up to but not including end.
\_\_\_\_\_(begin?: number, end?: number): Iterable<K, V>
11 creating subsets methods.
slice
Returns a new Iterable of the same type representing a portion of this Iterable from start up to but not including end.
slice(begin?: number, end?: number): Iterable<K, V>
Iterable
Returns a new Iterable of the same type containing all entries except the first.
\_\_\_\_\_(): Iterable<K, V>
11 creating subsets methods.
rest
Returns a new Iterable of the same type containing all entries except the first.
rest(): Iterable<K, V>
Iterable
Returns a new Iterable of the same type containing all entries except the last.
\_\_\_\_\_(): Iterable<K, V>
11 creating subsets methods.
butLast
Returns a new Iterable of the same type containing all entries except the last.
butLast(): Iterable<K, V>
Iterable
Returns a new Iterable of the same type which excludes the first amount
entries from this Iterable.
\_\_\_\_\_(amount: number): Iterable<K, V>
11 creating subsets methods.
skip
Returns a new Iterable of the same type which excludes the first amount
entries from this Iterable.
skip(amount: number): Iterable<K, V>
Iterable
Returns a new Iterable of the same type which excludes the last amount
entries from this Iterable.
\_\_\_\_\_(amount: number): Iterable<K, V>
11 creating subsets methods.
skipLast
Returns a new Iterable of the same type which excludes the last amount
entries from this Iterable.
skipLast(amount: number): Iterable<K, V>
Iterable
Returns a new Iterable of the same type which includes entries starting from when predicate
first returns false.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
11 creating subsets methods.
skipWhile
Returns a new Iterable of the same type which includes entries starting from when predicate
first returns false.
`skipWhile(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
Iterable
Returns a new Iterable of the same type which includes entries starting from when predicate
first returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
11 creating subsets methods.
skipUntil
Returns a new Iterable of the same type which includes entries starting from when predicate
first returns true.
`skipUntil(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
Iterable
Returns a new Iterable of the same type which includes the first amount
entries from this Iterable.
\_\_\_\_\_(amount: number): Iterable<K, V>
11 creating subsets methods.
take
Returns a new Iterable of the same type which includes the first amount
entries from this Iterable.
take(amount: number): Iterable<K, V>
Iterable
Returns a new Iterable of the same type which includes the last amount
entries from this Iterable.
\_\_\_\_\_(amount: number): Iterable<K, V>
11 creating subsets methods.
takeLast
Returns a new Iterable of the same type which includes the last amount
entries from this Iterable.
takeLast(amount: number): Iterable<K, V>
Iterable
Returns a new Iterable of the same type which includes entries from this Iterable as long as the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
11 creating subsets methods.
takeWhile
Returns a new Iterable of the same type which includes entries from this Iterable as long as the predicate
returns true.
`takeWhile(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
Iterable
Returns a new Iterable of the same type which includes entries from this Iterable as long as the predicate
returns false.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
11 creating subsets methods.
takeUntil
Returns a new Iterable of the same type which includes entries from this Iterable as long as the predicate
returns false.
`takeUntil(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): Iterable<K, V>`
Iterable
Returns a new Iterable of the same type with other values and iterable-like _____enated to this one.
\_\_\_\_\_(...valuesOrIterables: any[]): Iterable<K, V>
3 combination methods.
concat
Returns a new Iterable of the same type with other values and iterable-like concatenated to this one.
concat(...valuesOrIterables: any[]): Iterable<K, V>
Iterable
Flattens nested Iterables.
\_\_\_\_\_(depth?: number): Iterable<any, any>\_\_\_\_\_(shallow?: boolean): Iterable<any, any>
3 combination methods.
flatten
Flattens nested Iterables.
flatten(depth?: number): Iterable<any, any>flatten(shallow?: boolean): Iterable<any, any>
Iterable
Flat-maps the Iterable, returning an Iterable of the same type.
`_____<MK, MV>(
mapper: (value?: V, key?: K, iter?: Iterable<K, V>) => Iterable<MK, MV>,context?: any
): Iterable<MK, MV>_____<MK, MV>(
mapper: (value?: V, key?: K, iter?: Iterable<K, V>) => any,context?: any
): Iterable<MK, MV>`
3 combination methods.
flatMap
Flat-maps the Iterable, returning an Iterable of the same type.
`flatMap<MK, MV>(
mapper: (value?: V, key?: K, iter?: Iterable<K, V>) => Iterable<MK, MV>,context?: any
): Iterable<MK, MV>flatMap<MK, MV>(
mapper: (value?: V, key?: K, iter?: Iterable<K, V>) => any,context?: any
): Iterable<MK, MV>`
Iterable
Reduces the Iterable to a value by calling the \_\_\_\_\_r
for every entry in the Iterable and passing along the _____d value.
`_____<R>(
\_\_\_\_\_r: (reduction?: R, value?: V, key?: K, iter?: Iterable<K, V>) => R,initialReduction?: R,context?: any</R>
): R`
8 reducing a value methods.
reduce
Reduces the Iterable to a value by calling the reducer
for every entry in the Iterable and passing along the reduced value.
`reduce<R>(
reducer: (reduction?: R, value?: V, key?: K, iter?: Iterable<K, V>) => R,initialReduction?: R,context?: any</R>
): R`
Iterable
Reduces the Iterable in reverse (from the right side).
`_____<R>(
reducer: (reduction?: R, value?: V, key?: K, iter?: Iterable<K, V>) => R,initialReduction?: R,context?: any</R>
): R`
8 reducing a value methods.
reduceRight
Reduces the Iterable in reverse (from the right side).
`reduceRight<R>(
reducer: (reduction?: R, value?: V, key?: K, iter?: Iterable<K, V>) => R,initialReduction?: R,context?: any</R>
): R`
Iterable
True if predicate
returns true for all entries in the Iterable.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): boolean`
8 reducing a value methods.
every
True if predicate
returns true for all entries in the Iterable.
`every(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): boolean`
Iterable
True if predicate
returns true for any entry in the Iterable.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): boolean`
8 reducing a value methods.
some
True if predicate
returns true for any entry in the Iterable.
`some(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): boolean`
Iterable
Joins values together as a string, inserting a separator between each. The default separator is ","
.
\_\_\_\_\_(separator?: string): string
8 reducing a value methods.
join
Joins values together as a string, inserting a separator between each. The default separator is ","
.
join(separator?: string): string
Iterable
Returns true if this Iterable includes no values.
\_\_\_\_\_(): boolean
8 reducing a value methods.
isEmpty
Returns true if this Iterable includes no values.
isEmpty(): boolean
Iterable
Returns the size of this Iterable.
`_____(): number_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): number`
8 reducing a value methods.
count
Returns the size of this Iterable.
`count(): numbercount(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any
): number`
Iterable
Returns a KeyedSeq
of counts, grouped by the return value of the grouper
function.
`_____<G>(
grouper: (value?: V, key?: K, iter?: Iterable<K, V>) => G,context?: any</G>
): Map<G, number>`
8 reducing a value methods.
countBy
Returns a KeyedSeq
of counts, grouped by the return value of the grouper
function.
`countBy<G>(
grouper: (value?: V, key?: K, iter?: Iterable<K, V>) => G,context?: any</G>
): Map<G, number>`
Iterable
Returns the value for which the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): V`
8 search for value methods.
find
Returns the value for which the predicate
returns true.
`find(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): V`
Iterable
Returns the last value for which the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): V`
8 search for value methods.
findLast
Returns the last value for which the predicate
returns true.
`findLast(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): V`
Iterable
Returns the [key, value] entry for which the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): Array<any>`</any>
8 search for value methods.
findEntry
Returns the [key, value] entry for which the predicate
returns true.
`findEntry(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): Array<any>`</any>
Iterable
Returns the last [key, value] entry for which the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): Array<any>`</any>
8 search for value methods.
findLastEntry
Returns the last [key, value] entry for which the predicate
returns true.
`findLastEntry(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any,notSetValue?: V
): Array<any>`</any>
Iterable
Returns the _____imum value in this collection. If any values are comparatively equivalent, the first one found will be returned.
\_\_\_\_\_(comparator?: (valueA: V, valueB: V) => number): V
8 search for value methods.
max
Returns the maximum value in this collection. If any values are comparatively equivalent, the first one found will be returned.
max(comparator?: (valueA: V, valueB: V) => number): V
Iterable
Like max
, but also accepts a comparatorValueMapper
which allows for comparing by more sophisticated means:
`_____<C>(
comparatorValueMapper: (value?: V, key?: K, iter?: Iterable<K, V>) => C,comparator?: (valueA: C, valueB: C) => number</C>
): V`
8 search for value methods.
maxBy
Like max
, but also accepts a comparatorValueMapper
which allows for comparing by more sophisticated means:
`maxBy<C>(
comparatorValueMapper: (value?: V, key?: K, iter?: Iterable<K, V>) => C,comparator?: (valueA: C, valueB: C) => number</C>
): V`
Iterable
Returns the _____imum value in this collection. If any values are comparatively equivalent, the first one found will be returned.
\_\_\_\_\_(comparator?: (valueA: V, valueB: V) => number): V
8 search for value methods.
min
Returns the minimum value in this collection. If any values are comparatively equivalent, the first one found will be returned.
min(comparator?: (valueA: V, valueB: V) => number): V
Iterable
Like min
, but also accepts a comparatorValueMapper
which allows for comparing by more sophisticated means:
`_____<C>(
comparatorValueMapper: (value?: V, key?: K, iter?: Iterable<K, V>) => C,comparator?: (valueA: C, valueB: C) => number</C>
): V`
8 search for value methods.
minBy
Like min
, but also accepts a comparatorValueMapper
which allows for comparing by more sophisticated means:
`minBy<C>(
comparatorValueMapper: (value?: V, key?: K, iter?: Iterable<K, V>) => C,comparator?: (valueA: C, valueB: C) => number</C>
): V`
Iterable
True if iter
includes every value in this Iterable.
\_\_\_\_\_(iter: Iterable<any, V>): boolean\_\_\_\_\_(iter: Array<V>): boolean
2 comparison methods.
isSubset
True if iter
includes every value in this Iterable.
isSubset(iter: Iterable<any, V>): booleanisSubset(iter: Array<V>): boolean
Iterable
True if this Iterable includes every value in iter
.
\_\_\_\_\_(iter: Iterable<any, V>): boolean\_\_\_\_\_(iter: Array<V>): boolean
2 comparison methods.
isSuperset
True if this Iterable includes every value in iter
.
isSuperset(iter: Iterable<any, V>): booleanisSuperset(iter: Array<V>): boolean
KeyedIterable
Creates a _____
\_\_\_\_\_<K, V>(iter:\_\_\_\_\_<K, V>): \_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iter: Iterable<any, any>): \_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(array: Array<any>): \_\_\_\_\_<K, V>\_\_\_\_\_<V>(obj: {[key: string]: V}): \_\_\_\_\_<string, V>\_\_\_\_\_<K, V>(iterator: Iterator<any>): \_\_\_\_\_<K, V>\_\_\_\_\_<K, V>(iterable: Object): \_\_\_\_\_<K, V>
1 construction methods.
KeyedIterable
Creates a KeyedIterable
KeyedIterable<K, V>(iter: KeyedIterable<K, V>): KeyedIterable<K, V>KeyedIterable<K, V>(iter: Iterable<any, any>): KeyedIterable<K, V>KeyedIterable<K, V>(array: Array<any>): KeyedIterable<K, V>KeyedIterable<V>(obj: {[key: string]: V}): KeyedIterable<string, V>KeyedIterable<K, V>(iterator: Iterator<any>): KeyedIterable<K, V>KeyedIterable<K, V>(iterable: Object): KeyedIterable<K, V>
KeyedIterable
Returns KeyedSeq.
\_\_\_\_\_(): KeyedSeq<K, V>
4 conversion to seq methods.
toSeq
Returns KeyedSeq.
toSeq(): KeyedSeq<K, V>
KeyedIterable
Returns a new KeyedIterable of the same type where the keys and values have been _____ped.
\_\_\_\_\_(): KeyedIterable<V, K>
3 sequence functions methods.
flip
Returns a new KeyedIterable of the same type where the keys and values have been flipped.
flip(): KeyedIterable<V, K>
KeyedIterable
Returns a new KeyedIterable of the same type with keys passed through a mapper
function.
`_____<M>(
mapper: (key?: K, value?: V, iter?: KeyedIterable<K, V>) => M,context?: any</M>
): KeyedIterable<M, V>`
3 sequence functions methods.
mapKeys
Returns a new KeyedIterable of the same type with keys passed through a mapper
function.
`mapKeys<M>(
mapper: (key?: K, value?: V, iter?: KeyedIterable<K, V>) => M,context?: any</M>
): KeyedIterable<M, V>`
KeyedIterable
Returns a new KeyedIterable of the same type with entries ([key, value] tuples) passed through a mapper
function.
`_____<KM, VM>(
mapper: (
entry?: Array<any>,index?: number,iter?: KeyedIterable<K, V></any>
) => Array<any>,context?: any</any>
): KeyedIterable<KM, VM>`
3 sequence functions methods.
mapEntries
Returns a new KeyedIterable of the same type with entries ([key, value] tuples) passed through a mapper
function.
`mapEntries<KM, VM>(
mapper: (
entry?: Array<any>,index?: number,iter?: KeyedIterable<K, V></any>
) => Array<any>,context?: any</any>
): KeyedIterable<KM, VM>`
KeyedIterable
Returns the key associated with the search value, or undefined.
\_\_\_\_\_(searchValue: V): K
12 search for value methods.
keyOf
Returns the key associated with the search value, or undefined.
keyOf(searchValue: V): K
KeyedIterable
Returns the last key associated with the search value, or undefined.
\_\_\_\_\_(searchValue: V): K
12 search for value methods.
lastKeyOf
Returns the last key associated with the search value, or undefined.
lastKeyOf(searchValue: V): K
KeyedIterable
Returns the key for which the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: KeyedIterable<K, V>) => boolean,context?: any
): K`
12 search for value methods.
findKey
Returns the key for which the predicate
returns true.
`findKey(
predicate: (value?: V, key?: K, iter?: KeyedIterable<K, V>) => boolean,context?: any
): K`
KeyedIterable
Returns the last key for which the predicate
returns true.
`_____(
predicate: (value?: V, key?: K, iter?: KeyedIterable<K, V>) => boolean,context?: any
): K`
12 search for value methods.
findLastKey
Returns the last key for which the predicate
returns true.
`findLastKey(
predicate: (value?: V, key?: K, iter?: KeyedIterable<K, V>) => boolean,context?: any
): K`
IndexedIterable
Creates a new _____.
\_\_\_\_\_<T>(iter:\_\_\_\_\_<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iter: SetIterable<T>): \_\_\_\_\_<T>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>): \_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object): \_\_\_\_\_<T>
1 construction methods.
IndexedIterable
Creates a new IndexedIterable.
IndexedIterable<T>(iter: IndexedIterable<T>): IndexedIterable<T>IndexedIterable<T>(iter: SetIterable<T>): IndexedIterable<T>IndexedIterable<K, V>(iter: KeyedIterable<K, V>): IndexedIterable<any>IndexedIterable<T>(array: Array<T>): IndexedIterable<T>IndexedIterable<T>(iterator: Iterator<T>): IndexedIterable<T>IndexedIterable<T>(iterable: Object): IndexedIterable<T>
IndexedIterable
Returns the value associated with the provided index, or notSetValue if the index is beyond the bounds of the Iterable.
\_\_\_\_\_(index: number, notSetValue?: T): T
5 reading values methods.
get
Returns the value associated with the provided index, or notSetValue if the index is beyond the bounds of the Iterable.
get(index: number, notSetValue?: T): T
IndexedIterable
Returns IndexedSeq.
\_\_\_\_\_(): IndexedSeq<T>
5 conversion to seq methods.
toSeq
Returns IndexedSeq.
toSeq(): IndexedSeq<T>
IndexedIterable
If this is an iterable of [key, value] entry tuples, it will return a KeyedSeq of those entries.
\_\_\_\_\_(): KeyedSeq<any, any>
5 conversion to seq methods.
fromEntrySeq
If this is an iterable of [key, value] entry tuples, it will return a KeyedSeq of those entries.
fromEntrySeq(): KeyedSeq<any, any>
IndexedIterable
Returns an Iterable of the same type with separator
between each item in this Iterable.
\_\_\_\_\_(separator: T): IndexedIterable<T>
8 combination methods.
interpose
Returns an Iterable of the same type with separator
between each item in this Iterable.
interpose(separator: T): IndexedIterable<T>
IndexedIterable
Returns an Iterable of the same type with the provided iterables
_____d into this iterable.
\_\_\_\_\_(...iterables: Array<Iterable<any, T>>): IndexedIterable<T>
8 combination methods.
interleave
Returns an Iterable of the same type with the provided iterables
interleaved into this iterable.
interleave(...iterables: Array<Iterable<any, T>>): IndexedIterable<T>
IndexedIterable
Splice returns a new indexed Iterable by replacing a region of this Iterable with new values. If values are not provided, it only skips the region to be removed.
\_\_\_\_\_(index: number, removeNum: number, ...values: any[]): IndexedIterable<T>
8 combination methods.
splice
Splice returns a new indexed Iterable by replacing a region of this Iterable with new values. If values are not provided, it only skips the region to be removed.
splice(index: number, removeNum: number, ...values: any[]): IndexedIterable<T>
IndexedIterable
Returns an Iterable of the same type “_____ped” with the provided iterables.
\_\_\_\_\_(...iterables: Array<Iterable<any, any>>): IndexedIterable<any>
8 combination methods.
zip
Returns an Iterable of the same type “zipped” with the provided iterables.
zip(...iterables: Array<Iterable<any, any>>): IndexedIterable<any>
IndexedIterable
Returns an Iterable of the same type “zipped” with the provided iterables by using a custom zipper
function.
`_____<U, Z>(
zipper: (value: T, otherValue: U) => Z,otherIterable: Iterable<any, U>
): IndexedIterable<Z>\_\_\_\_\_<U, V, Z>(
zipper: (value: T, otherValue: U, thirdValue: V) => Z,otherIterable: Iterable<any, U>,thirdIterable: Iterable<any, V></Z>
): IndexedIterable<Z>\_\_\_\_\_<Z>(
zipper: (...any: Array<any>) => Z,...iterables: Array<Iterable<any, any>></any></Z></Z>
): IndexedIterable<Z>`</Z>
8 combination methods.
zipWith
Returns an Iterable of the same type “zipped” with the provided iterables by using a custom zipper
function.
`zipWith<U, Z>(
zipper: (value: T, otherValue: U) => Z,otherIterable: Iterable<any, U>
): IndexedIterable<Z>zipWith<U, V, Z>(
zipper: (value: T, otherValue: U, thirdValue: V) => Z,otherIterable: Iterable<any, U>,thirdIterable: Iterable<any, V></Z>
): IndexedIterable<Z>zipWith<Z>(
zipper: (...any: Array<any>) => Z,...iterables: Array<Iterable<any, any>></any></Z></Z>
): IndexedIterable<Z>`</Z>
IndexedIterable
Returns the first index at which a given value can be found in the Iterable, or -1 if it is not present.
\_\_\_\_\_(searchValue: T): number
12 search for value methods.
indexOf
Returns the first index at which a given value can be found in the Iterable, or -1 if it is not present.
indexOf(searchValue: T): number
IndexedIterable
Returns the last index at which a given value can be found in the Iterable, or -1 if it is not present.
\_\_\_\_\_(searchValue: T): number
12 search for value methods.
lastIndexOf
Returns the last index at which a given value can be found in the Iterable, or -1 if it is not present.
lastIndexOf(searchValue: T): number
IndexedIterable
Returns the first index in the Iterable where a value satisfies the provided predicate function. Otherwise -1 is returned.
`_____(
predicate: (value?: T, index?: number, iter?: IndexedIterable<T>) => boolean,context?: any</T>
): number`
12 search for value methods.
findIndex
Returns the first index in the Iterable where a value satisfies the provided predicate function. Otherwise -1 is returned.
`findIndex(
predicate: (value?: T, index?: number, iter?: IndexedIterable<T>) => boolean,context?: any</T>
): number`
IndexedIterable
Returns the last index in the Iterable where a value satisfies the provided predicate function. Otherwise -1 is returned.
`_____(
predicate: (value?: T, index?: number, iter?: IndexedIterable<T>) => boolean,context?: any</T>
): number`
12 search for value methods.
findLastIndex
Returns the last index in the Iterable where a value satisfies the provided predicate function. Otherwise -1 is returned.
`findLastIndex(
predicate: (value?: T, index?: number, iter?: IndexedIterable<T>) => boolean,context?: any</T>
): number`
SetIterable
Similar to Iterable()
, but always returns a _____.
\_\_\_\_\_<T>(iter:\_\_\_\_\_<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iter: IndexedIterable<T>): \_\_\_\_\_<T>\_\_\_\_\_<K, V>(iter: KeyedIterable<K, V>): \_\_\_\_\_<any>\_\_\_\_\_<T>(array: Array<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iterator: Iterator<T>): \_\_\_\_\_<T>\_\_\_\_\_<T>(iterable: Object): \_\_\_\_\_<T>
1 construction methods.
SetIterable
Similar to Iterable()
, but always returns a SetIterable.
SetIterable<T>(iter: SetIterable<T>): SetIterable<T>SetIterable<T>(iter: IndexedIterable<T>): SetIterable<T>SetIterable<K, V>(iter: KeyedIterable<K, V>): SetIterable<any>SetIterable<T>(array: Array<T>): SetIterable<T>SetIterable<T>(iterator: Iterator<T>): SetIterable<T>SetIterable<T>(iterable: Object): SetIterable<T>
SetIterable
Returns SetSeq.
\_\_\_\_\_(): SetSeq<T>
4 conversion to seq methods.
toSeq
Returns SetSeq.
toSeq(): SetSeq<T>
Collection\_\_\_\_\_ze: number
1 members methods.
sisize: number
KeyedCollection
Returns KeyedSeq.
\_\_\_\_\_(): KeyedSeq<K, V>
4 conversion to seq methods.
toSeq
Returns KeyedSeq.
toSeq(): KeyedSeq<K, V>
IndexedCollection
Returns IndexedSeq.
\_\_\_\_\_(): IndexedSeq<T>
5 conversion to seq methods.
toSeq
Returns IndexedSeq.
toSeq(): IndexedSeq<T>
SetCollection
Returns SetSeq.
\_\_\_\_\_(): SetSeq<T>
4 conversion to seq methods.
toSeq
Returns SetSeq.
toSeq(): SetSeq<T>