Immutable.js Flashcards

1
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List

True if the provided value is a List

List.isList(maybeList: any): boolean

2 static methods methods.

A

List.isList

True if the provided value is a List

List.isList(maybeList: any): boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List

Creates a new List containing values.

List.of<T>(...values: T[]): List<T>

2 static methods methods.

A

List.of

Creates a new List containing values.

List.of<T>(...values: T[]): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List

Returns a new List with 0 size and no values.

\_\_\_\_\_(): List<T>

13 persistent changes methods.

A

clear

Returns a new List with 0 size and no values.

clear(): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List

Returns a new List with the provided values appended, starting at this List’s size.

\_\_\_\_\_(...values: T[]): List<T>

13 persistent changes methods.

A

push

Returns a new List with the provided values appended, starting at this List’s size.

push(...values: T[]): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.

A

pop

Returns a new List with a size ones less than this List, excluding the last index in this List.

pop(): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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.

A

unshift

Returns a new List with the provided values prepended, shifting other values ahead to higher indices.

unshift(...values: T[]): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

List
\_\_\_\_\_(...iterables: IndexedIterable<T>[]): List<T>\_\_\_\_\_(...iterables: Array<T>[]): List<T>

13 persistent changes methods.

A

merge
merge(...iterables: IndexedIterable<T>[]): List<T>merge(...iterables: Array<T>[]): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

List
\_\_\_\_\_(...iterables: IndexedIterable<T>[]): List<T>\_\_\_\_\_(...iterables: Array<T>[]): List<T>

13 persistent changes methods.

A

mergeDeep
mergeDeep(...iterables: IndexedIterable<T>[]): List<T>mergeDeep(...iterables: Array<T>[]): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

List
\_\_\_\_\_(): List<T>

3 transient changes methods.

A

asMutable
asMutable(): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

List
\_\_\_\_\_(): List<T>

3 transient changes methods.

A

asImmutable
asImmutable(): List<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Map

True if the provided value is a Map

Map.isMap(maybeMap: any): boolean

1 static methods methods.

A

Map.isMap

True if the provided value is a Map

Map.isMap(maybeMap: any): boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Map

Returns a new Map which excludes this key.

\_\_\_\_\_(key: K): Map<K, V>

8 persistent changes methods.

A

delete

Returns a new Map which excludes this key.

delete(key: K): Map<K, V>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Map

Returns a new Map containing no keys or values.

\_\_\_\_\_(): Map<K, V>

8 persistent changes methods.

A

clear

Returns a new Map containing no keys or values.

clear(): Map<K, V>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

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.

A

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>`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

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.

A

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>`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

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.

A

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>`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

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.

A

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>`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

OrderedMap

True if the provided value is an OrderedMap.

OrderedMap.isOrderedMap(maybeOrderedMap: any): boolean

1 static methods methods.

A

OrderedMap.isOrderedMap

True if the provided value is an OrderedMap.

OrderedMap.isOrderedMap(maybeOrderedMap: any): boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

Set

True if the provided value is a Set

Set.isSet(maybeSet: any): boolean

3 static methods methods.

A

Set.isSet

True if the provided value is a Set

Set.isSet(maybeSet: any): boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Set

Creates a new Set containing values.

Set.of<T>(...values: T[]): Set<T>

3 static methods methods.

A

Set.of

Creates a new Set containing values.

Set.of<T>(...values: T[]): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Set

Returns a new Set which also includes this value.

\_\_\_\_\_(value: T): Set<T>

6 persistent changes methods.

A

add

Returns a new Set which also includes this value.

add(value: T): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

Set

Returns a new Set which excludes this value.

\_\_\_\_\_(value: T): Set<T>

6 persistent changes methods.

A

delete

Returns a new Set which excludes this value.

delete(value: T): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

Set

Returns a new Set containing no values.

\_\_\_\_\_(): Set<T>

6 persistent changes methods.

A

clear

Returns a new Set containing no values.

clear(): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

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.

A

subtract

Returns a Set excluding any values contained within iterables.

subtract(...iterables: Iterable<any, T>[]): Set<T>subtract(...iterables: Array<T>[]): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

Set
\_\_\_\_\_(): Set<T>

3 transient changes methods.

A

asMutable
asMutable(): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

Set
\_\_\_\_\_(): Set<T>

3 transient changes methods.

A

asImmutable
asImmutable(): Set<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

OrderedSet

True if the provided value is an OrderedSet.

OrderedSet.isOrderedSet(maybeOrderedSet: any): boolean

3 static methods methods.

A

OrderedSet.isOrderedSet

True if the provided value is an OrderedSet.

OrderedSet.isOrderedSet(maybeOrderedSet: any): boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

OrderedSet

Creates a new OrderedSet containing values.

OrderedSet.of<T>(...values: T[]): OrderedSet<T>

3 static methods methods.

A

OrderedSet.of

Creates a new OrderedSet containing values.

OrderedSet.of<T>(...values: T[]): OrderedSet<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

Stack

True if the provided value is a Stack

Stack.isStack(maybeStack: any): boolean

2 static methods methods.

A

Stack.isStack

True if the provided value is a Stack

Stack.isStack(maybeStack: any): boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Stack

Creates a new Stack containing values.

Stack.of<T>(...values: T[]): Stack<T>

2 static methods methods.

A

Stack.of

Creates a new Stack containing values.

Stack.of<T>(...values: T[]): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

Stack

Alias for Stack.first().

\_\_\_\_\_(): T

6 reading values methods.

A

peek

Alias for Stack.first().

peek(): T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

Stack

Returns a new Stack with 0 size and no values.

\_\_\_\_\_(): Stack<T>

7 persistent changes methods.

A

clear

Returns a new Stack with 0 size and no values.

clear(): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

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.

A

unshift

Returns a new Stack with the provided values prepended, shifting other values ahead to higher indices.

unshift(...values: T[]): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

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.

A

unshiftAll

Like Stack#unshift, but accepts a iterable rather than varargs.

unshiftAll(iter: Iterable<any, T>): Stack<T>unshiftAll(iter: Array<T>): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

Stack

Alias for Stack#unshift and is not equivalent to List#\_\_\_\_\_.

\_\_\_\_\_(...values: T[]): Stack<T>

7 persistent changes methods.

A

push

Alias for Stack#unshift and is not equivalent to List#push.

push(...values: T[]): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

Stack

Alias for Stack#unshiftAll.

\_\_\_\_\_(iter: Iterable<any, T>): Stack<T>\_\_\_\_\_(iter: Array<T>): Stack<T>

7 persistent changes methods.

A

pushAll

Alias for Stack#unshiftAll.

pushAll(iter: Iterable<any, T>): Stack<T>pushAll(iter: Array<T>): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

Stack

Alias for Stack#shift and is not equivalent to List#\_\_\_\_\_.

\_\_\_\_\_(): Stack<T>

7 persistent changes methods.

A

pop

Alias for Stack#shift and is not equivalent to List#pop.

pop(): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

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.

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

Stack
\_\_\_\_\_(): Stack<T>

3 transient changes methods.

A

asMutable
asMutable(): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

Stack
\_\_\_\_\_(): Stack<T>

3 transient changes methods.

A

asImmutable
asImmutable(): Stack<T>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

Record
\_\_\_\_\_(defaultValues: {[key: string]: any}, name?: string):\_\_\_\_\_.Class

1 construction methods.

A

Record
Record(defaultValues: {[key: string]: any}, name?: string): Record.Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

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.

A

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>

78
Q

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.

A

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

79
Q

Seq

Returns a _____ the values provided. Alias for Indexed\_\_\_\_\_().

Seq.of<T>(...values: T[]): IndexedSeq<T>

2 static methods methods.

A

Seq.of

Returns a Seq of the values provided. Alias for IndexedSeq.of().

Seq.of<T>(...values: T[]): IndexedSeq<T>

80
Q

Seq
\_\_\_\_\_ze: number

1 members methods.

A

si
size: number

81
Q

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.

A

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>

82
Q

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.

A

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>

83
Q

KeyedSeq

Returns itself

\_\_\_\_\_(): KeyedSeq<K, V>

4 conversion to seq methods.

A

toSeq

Returns itself

toSeq(): KeyedSeq<K, V>

84
Q

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.

A

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>

85
Q

IndexedSeq

Provides an _____ the values provided.

IndexedSeq.of<T>(...values: T[]): IndexedSeq<T>

1 static methods methods.

A

IndexedSeq.of

Provides an IndexedSeq of the values provided.

IndexedSeq.of<T>(...values: T[]): IndexedSeq<T>

86
Q

IndexedSeq

Returns itself

\_\_\_\_\_(): IndexedSeq<T>

5 conversion to seq methods.

A

toSeq

Returns itself

toSeq(): IndexedSeq<T>

87
Q

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.

A

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>

88
Q

SetSeq

Returns a _____ the provided values

SetSeq.of<T>(...values: T[]): SetSeq<T>

1 static methods methods.

A

SetSeq.of

Returns a SetSeq of the provided values

SetSeq.of<T>(...values: T[]): SetSeq<T>

89
Q

SetSeq

Returns itself

\_\_\_\_\_(): SetSeq<T>

4 conversion to seq methods.

A

toSeq

Returns itself

toSeq(): SetSeq<T>

90
Q

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.

A

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>

91
Q

Iterable

True if maybeIterable is an Iterable, or any of its subclasses.

Iterable.isIterable(maybeIterable: any): boolean

5 static methods methods.

A

Iterable.isIterable

True if maybeIterable is an Iterable, or any of its subclasses.

Iterable.isIterable(maybeIterable: any): boolean

92
Q

Iterable

True if maybeKeyed is a KeyedIterable, or any of its subclasses.

Iterable.isKeyed(maybeKeyed: any): boolean

5 static methods methods.

A

Iterable.isKeyed

True if maybeKeyed is a KeyedIterable, or any of its subclasses.

Iterable.isKeyed(maybeKeyed: any): boolean

93
Q

Iterable

True if maybeIndexed is a IndexedIterable, or any of its subclasses.

Iterable.isIndexed(maybeIndexed: any): boolean

5 static methods methods.

A

Iterable.isIndexed

True if maybeIndexed is a IndexedIterable, or any of its subclasses.

Iterable.isIndexed(maybeIndexed: any): boolean

94
Q

Iterable

True if maybeAssociative is either a keyed or indexed Iterable.

Iterable.isAssociative(maybeAssociative: any): boolean

5 static methods methods.

A

Iterable.isAssociative

True if maybeAssociative is either a keyed or indexed Iterable.

Iterable.isAssociative(maybeAssociative: any): boolean

95
Q

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.

A

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

96
Q

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.

A

equals

True if this and the other Iterable have value equality, as defined by Immutable.is().

equals(other: Iterable<K, V>): boolean

97
Q

Iterable

Computes and returns the hashed identity for this Iterable.

\_\_\_\_\_(): number

2 value equality methods.

A

hashCode

Computes and returns the hashed identity for this Iterable.

hashCode(): number

98
Q

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.

A

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

99
Q

Iterable

True if a key exists within this Iterable.

\_\_\_\_\_(key: K): boolean

5 reading values methods.

A

has

True if a key exists within this Iterable.

has(key: K): boolean

100
Q

Iterable

True if a value exists within this Iterable.

\_\_\_\_\_(value: V): boolean

5 reading values methods.

A

includes

True if a value exists within this Iterable.

includes(value: V): boolean

101
Q

Iterable

The _____ value in the Iterable.

\_\_\_\_\_(): V

5 reading values methods.

A

first

The first value in the Iterable.

first(): V

102
Q

Iterable

The _____ value in the Iterable.

\_\_\_\_\_(): V

5 reading values methods.

A

last

The last value in the Iterable.

last(): V

103
Q

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.

A

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

104
Q

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.

A

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

105
Q

Iterable

Deeply converts this Iterable to equivalent JS.

\_\_\_\_\_(): any

3 conversion to javascript types methods.

A

toJS

Deeply converts this Iterable to equivalent JS.

toJS(): any

106
Q

Iterable

Shallowly converts this iterable to an Array, discarding keys.

\_\_\_\_\_(): Array<V>

3 conversion to javascript types methods.

A

toArray

Shallowly converts this iterable to an Array, discarding keys.

toArray(): Array<V>

107
Q

Iterable

Shallowly converts this Iterable to an Object.

\_\_\_\_\_(): {[key: string]: V}

3 conversion to javascript types methods.

A

toObject

Shallowly converts this Iterable to an Object.

toObject(): {[key: string]: V}

108
Q

Iterable

Converts this Iterable to a Map, Throws if keys are not hashable.

\_\_\_\_\_(): Map<K, V>

6 conversion to collections methods.

A

toMap

Converts this Iterable to a Map, Throws if keys are not hashable.

toMap(): Map<K, V>

109
Q

Iterable

Converts this Iterable to a Map, maintaining the order of iteration.

\_\_\_\_\_(): Map<K, V>

6 conversion to collections methods.

A

toOrderedMap

Converts this Iterable to a Map, maintaining the order of iteration.

toOrderedMap(): Map<K, V>

110
Q

Iterable

Converts this Iterable to a Set, discarding keys. Throws if values are not hashable.

\_\_\_\_\_(): Set<V>

6 conversion to collections methods.

A

toSet

Converts this Iterable to a Set, discarding keys. Throws if values are not hashable.

toSet(): Set<V>

111
Q

Iterable

Converts this Iterable to a Set, maintaining the order of iteration and discarding keys.

\_\_\_\_\_(): Set<V>

6 conversion to collections methods.

A

toOrderedSet

Converts this Iterable to a Set, maintaining the order of iteration and discarding keys.

toOrderedSet(): Set<V>

112
Q

Iterable

Converts this Iterable to a List, discarding keys.

\_\_\_\_\_(): List<V>

6 conversion to collections methods.

A

toList

Converts this Iterable to a List, discarding keys.

toList(): List<V>

113
Q

Iterable

Converts this Iterable to a Stack, discarding keys. Throws if values are not hashable.

\_\_\_\_\_(): Stack<V>

6 conversion to collections methods.

A

toStack

Converts this Iterable to a Stack, discarding keys. Throws if values are not hashable.

toStack(): Stack<V>

114
Q

Iterable

Converts this Iterable to a Seq of the same kind (indexed, keyed, or set).

\_\_\_\_\_(): Seq<K, V>

4 conversion to seq methods.

A

toSeq

Converts this Iterable to a Seq of the same kind (indexed, keyed, or set).

toSeq(): Seq<K, V>

115
Q

Iterable

Returns a KeyedSeq from this Iterable where indices are treated as keys.

\_\_\_\_\_(): KeyedSeq<K, V>

4 conversion to seq methods.

A

toKeyedSeq

Returns a KeyedSeq from this Iterable where indices are treated as keys.

toKeyedSeq(): KeyedSeq<K, V>

116
Q

Iterable

Returns an IndexedSeq of the values of this Iterable, discarding keys.

\_\_\_\_\_(): IndexedSeq<V>

4 conversion to seq methods.

A

toIndexedSeq

Returns an IndexedSeq of the values of this Iterable, discarding keys.

toIndexedSeq(): IndexedSeq<V>

117
Q

Iterable

Returns a SetSeq of the values of this Iterable, discarding keys.

\_\_\_\_\_(): SetSeq<V>

4 conversion to seq methods.

A

toSetSeq

Returns a SetSeq of the values of this Iterable, discarding keys.

toSetSeq(): SetSeq<V>

118
Q

Iterable

An iterator of this Iterable’s _____.

\_\_\_\_\_(): Iterator<K>

3 iterators methods.

A

keys

An iterator of this Iterable’s keys.

keys(): Iterator<K>

119
Q

Iterable

An iterator of this Iterable’s _____.

\_\_\_\_\_(): Iterator<V>

3 iterators methods.

A

values

An iterator of this Iterable’s values.

values(): Iterator<V>

120
Q

Iterable

An iterator of this Iterable’s _____ as [key, value] tuples.

\_\_\_\_\_(): Iterator<Array<any>>

3 iterators methods.

A

entries

An iterator of this Iterable’s entries as [key, value] tuples.

entries(): Iterator<Array<any>>

121
Q

Iterable

Returns a new IndexedSeq of the keys of this Iterable, discarding values.

\_\_\_\_\_(): IndexedSeq<K>

3 iterables (seq) methods.

A

keySeq

Returns a new IndexedSeq of the keys of this Iterable, discarding values.

keySeq(): IndexedSeq<K>

122
Q

Iterable

Returns an IndexedSeq of the values of this Iterable, discarding keys.

\_\_\_\_\_(): IndexedSeq<V>

3 iterables (seq) methods.

A

valueSeq

Returns an IndexedSeq of the values of this Iterable, discarding keys.

valueSeq(): IndexedSeq<V>

123
Q

Iterable

Returns a new IndexedSeq of [key, value] tuples.

\_\_\_\_\_(): IndexedSeq<Array<any>>

3 iterables (seq) methods.

A

entrySeq

Returns a new IndexedSeq of [key, value] tuples.

entrySeq(): IndexedSeq<Array<any>>

124
Q

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.

A

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>`

125
Q

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.

A

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>`

126
Q

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.

A

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>`

127
Q

Iterable

Returns a new Iterable of the same type in _____ order.

\_\_\_\_\_(): Iterable<K, V>

7 sequence algorithms methods.

A

reverse

Returns a new Iterable of the same type in reverse order.

reverse(): Iterable<K, V>

128
Q

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.

A

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>

129
Q

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.

A

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>`

130
Q

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.

A

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»`

131
Q

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.

A

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`

132
Q

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.

A

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>

133
Q

Iterable

Returns a new Iterable of the same type containing all entries except the first.

\_\_\_\_\_(): Iterable<K, V>

11 creating subsets methods.

A

rest

Returns a new Iterable of the same type containing all entries except the first.

rest(): Iterable<K, V>

134
Q

Iterable

Returns a new Iterable of the same type containing all entries except the last.

\_\_\_\_\_(): Iterable<K, V>

11 creating subsets methods.

A

butLast

Returns a new Iterable of the same type containing all entries except the last.

butLast(): Iterable<K, V>

135
Q

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.

A

skip

Returns a new Iterable of the same type which excludes the first amount entries from this Iterable.

skip(amount: number): Iterable<K, V>

136
Q

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.

A

skipLast

Returns a new Iterable of the same type which excludes the last amount entries from this Iterable.

skipLast(amount: number): Iterable<K, V>

137
Q

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.

A

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>`

138
Q

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.

A

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>`

139
Q

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.

A

take

Returns a new Iterable of the same type which includes the first amount entries from this Iterable.

take(amount: number): Iterable<K, V>

140
Q

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.

A

takeLast

Returns a new Iterable of the same type which includes the last amount entries from this Iterable.

takeLast(amount: number): Iterable<K, V>

141
Q

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.

A

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>`

142
Q

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.

A

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>`

143
Q

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.

A

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>

144
Q

Iterable

Flattens nested Iterables.

\_\_\_\_\_(depth?: number): Iterable<any, any>\_\_\_\_\_(shallow?: boolean): Iterable<any, any>

3 combination methods.

A

flatten

Flattens nested Iterables.

flatten(depth?: number): Iterable<any, any>flatten(shallow?: boolean): Iterable<any, any>

145
Q

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.

A

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>`

146
Q

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.

A

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`

147
Q

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.

A

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`

148
Q

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.

A

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`

149
Q

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.

A

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`

150
Q

Iterable

Joins values together as a string, inserting a separator between each. The default separator is ",".

\_\_\_\_\_(separator?: string): string

8 reducing a value methods.

A

join

Joins values together as a string, inserting a separator between each. The default separator is ",".

join(separator?: string): string

151
Q

Iterable

Returns true if this Iterable includes no values.

\_\_\_\_\_(): boolean

8 reducing a value methods.

A

isEmpty

Returns true if this Iterable includes no values.

isEmpty(): boolean

152
Q

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.

A

count

Returns the size of this Iterable.

`count(): numbercount(
predicate: (value?: V, key?: K, iter?: Iterable<K, V>) => boolean,context?: any

): number`

153
Q

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.

A

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>`

154
Q

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.

A

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`

155
Q

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.

A

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`

156
Q

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.

A

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>

157
Q

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.

A

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>

158
Q

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.

A

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

159
Q

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.

A

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`

160
Q

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.

A

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

161
Q

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.

A

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`

162
Q

Iterable

True if iter includes every value in this Iterable.

\_\_\_\_\_(iter: Iterable<any, V>): boolean\_\_\_\_\_(iter: Array<V>): boolean

2 comparison methods.

A

isSubset

True if iter includes every value in this Iterable.

isSubset(iter: Iterable<any, V>): booleanisSubset(iter: Array<V>): boolean

163
Q

Iterable

True if this Iterable includes every value in iter.

\_\_\_\_\_(iter: Iterable<any, V>): boolean\_\_\_\_\_(iter: Array<V>): boolean

2 comparison methods.

A

isSuperset

True if this Iterable includes every value in iter.

isSuperset(iter: Iterable<any, V>): booleanisSuperset(iter: Array<V>): boolean

164
Q

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.

A

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>

165
Q

KeyedIterable

Returns KeyedSeq.

\_\_\_\_\_(): KeyedSeq<K, V>

4 conversion to seq methods.

A

toSeq

Returns KeyedSeq.

toSeq(): KeyedSeq<K, V>

166
Q

KeyedIterable

Returns a new KeyedIterable of the same type where the keys and values have been _____ped.

\_\_\_\_\_(): KeyedIterable<V, K>

3 sequence functions methods.

A

flip

Returns a new KeyedIterable of the same type where the keys and values have been flipped.

flip(): KeyedIterable<V, K>

167
Q

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.

A

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>`

168
Q

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.

A

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>`

169
Q

KeyedIterable

Returns the key associated with the search value, or undefined.

\_\_\_\_\_(searchValue: V): K

12 search for value methods.

A

keyOf

Returns the key associated with the search value, or undefined.

keyOf(searchValue: V): K

170
Q

KeyedIterable

Returns the last key associated with the search value, or undefined.

\_\_\_\_\_(searchValue: V): K

12 search for value methods.

A

lastKeyOf

Returns the last key associated with the search value, or undefined.

lastKeyOf(searchValue: V): K

171
Q

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.

A

findKey

Returns the key for which the predicate returns true.

`findKey(
predicate: (value?: V, key?: K, iter?: KeyedIterable<K, V>) => boolean,context?: any

): K`

172
Q

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.

A

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`

173
Q

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.

A

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>

174
Q

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.

A

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

175
Q

IndexedIterable

Returns IndexedSeq.

\_\_\_\_\_(): IndexedSeq<T>

5 conversion to seq methods.

A

toSeq

Returns IndexedSeq.

toSeq(): IndexedSeq<T>

176
Q

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.

A

fromEntrySeq

If this is an iterable of [key, value] entry tuples, it will return a KeyedSeq of those entries.

fromEntrySeq(): KeyedSeq<any, any>

177
Q

IndexedIterable

Returns an Iterable of the same type with separator between each item in this Iterable.

\_\_\_\_\_(separator: T): IndexedIterable<T>

8 combination methods.

A

interpose

Returns an Iterable of the same type with separator between each item in this Iterable.

interpose(separator: T): IndexedIterable<T>

178
Q

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.

A

interleave

Returns an Iterable of the same type with the provided iterables interleaved into this iterable.

interleave(...iterables: Array<Iterable<any, T>>): IndexedIterable<T>

179
Q

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.

A

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>

180
Q

IndexedIterable

Returns an Iterable of the same type “_____ped” with the provided iterables.

\_\_\_\_\_(...iterables: Array<Iterable<any, any>>): IndexedIterable<any>

8 combination methods.

A

zip

Returns an Iterable of the same type “zipped” with the provided iterables.

zip(...iterables: Array<Iterable<any, any>>): IndexedIterable<any>

181
Q

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.

A

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>

182
Q

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.

A

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

183
Q

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.

A

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

184
Q

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.

A

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`

185
Q

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.

A

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`

186
Q

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.

A

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>

187
Q

SetIterable

Returns SetSeq.

\_\_\_\_\_(): SetSeq<T>

4 conversion to seq methods.

A

toSeq

Returns SetSeq.

toSeq(): SetSeq<T>

188
Q

Collection
\_\_\_\_\_ze: number

1 members methods.

A

si
size: number

189
Q

KeyedCollection

Returns KeyedSeq.

\_\_\_\_\_(): KeyedSeq<K, V>

4 conversion to seq methods.

A

toSeq

Returns KeyedSeq.

toSeq(): KeyedSeq<K, V>

190
Q

IndexedCollection

Returns IndexedSeq.

\_\_\_\_\_(): IndexedSeq<T>

5 conversion to seq methods.

A

toSeq

Returns IndexedSeq.

toSeq(): IndexedSeq<T>

191
Q

SetCollection

Returns SetSeq.

\_\_\_\_\_(): SetSeq<T>

4 conversion to seq methods.

A

toSeq

Returns SetSeq.

toSeq(): SetSeq<T>