toMap

fun <ID : Any, T> Collapse<FieldEntry<ID, T>>.toMap(): Map<ID, T>

Converts this collapse of field entries into a map from entry IDs to their values.

Each entry in the collapse is turned into an entry in the resulting map using its id as the key and its value as the value.

Return

a map associating each entry ID with its corresponding value.

Type Parameters

ID

the type used to identify entries.

T

the type of value carried by each entry.


fun <ID : Any, T> Sequence<FieldEntry<ID, T>>.toMap(): Map<ID, T>

Converts a Sequence of FieldEntry to a Map.