Home Manual Reference Source

Function

Static Public Summary
public

* constant(keys: Iterable, value: any): IterableIterator

Creates a mapping from a sequences of keys and a single value.

public

fromMap(map: Map): IterableIterator

Instantiate a mapping from a map.

public

fromObject(object: Object): IterableIterator

Instantiate a mapping from an object.

public

* inverse(mapping: Iterable): IterableIterator

Inverse a mapping.

public

toMap(mapping: Iterable): Map

Instantiate a map from a mapping.

public

toObject(mapping: Iterable): Object

Instantiate an object from a mapping.

Static Public

public * constant(keys: Iterable, value: any): IterableIterator source

Creates a mapping from a sequences of keys and a single value. All keys are mapped to that single value.

Params:

NameTypeAttributeDescription
keys Iterable
value any

Return:

IterableIterator

The output mapping.

public fromMap(map: Map): IterableIterator source

Instantiate a mapping from a map.

Params:

NameTypeAttributeDescription
map Map

The input map.

Return:

IterableIterator

The output mapping.

public fromObject(object: Object): IterableIterator source

Instantiate a mapping from an object.

Params:

NameTypeAttributeDescription
object Object

The input object.

Return:

IterableIterator

The output mapping.

public * inverse(mapping: Iterable): IterableIterator source

Inverse a mapping.

Params:

NameTypeAttributeDescription
mapping Iterable

The input mapping.

Return:

IterableIterator

The output mapping.

public toMap(mapping: Iterable): Map source

Instantiate a map from a mapping.

Params:

NameTypeAttributeDescription
mapping Iterable

The input mapping.

Return:

Map

The output map.

public toObject(mapping: Iterable): Object source

Instantiate an object from a mapping.

Params:

NameTypeAttributeDescription
mapping Iterable

The input mapping.

Return:

Object

The output object.