toMap method

Map<K, V> toMap()

Implementation

Map<K, V> toMap() => foldLeftKV(new Map(), (p, K k, V v) => p..[k] = v);