mapWithKey<V2> method

IMap<K, V2> mapWithKey<V2>(
  1. V2 f(
    1. K k,
    2. V v
    )
)

Implementation

IMap<K, V2> mapWithKey<V2>(V2 f(K k, V v)) => foldLeftKV(new IMap._internal(_order, _emptyIMapAVLNode()), (p, k, v) => p.put(k, f(k, v)));