Map

new/2

new(enumerable, fun)

Creates a map from an enumerable via the given transformation function fun.

Duplicated keys are removed; the latest one prevails.