Closed dm3 closed 5 years ago
Would you consider adding the following:
map-vals-with-keys :: (K -> V -> V') -> Map[K, V] -> Map[K, V']
map-kv-vals
map-keys-with-vals :: (K -> V -> K') -> Map[K, V] -> Map[K', V]
map-kv-keys
?
I seem to run into the former all the time and doing map-kv always seems unnecessary.
map-kv
I'll consider it, but my initial thought it that this might be a little too specific.
Would you consider adding the following:
map-vals-with-keys :: (K -> V -> V') -> Map[K, V] -> Map[K, V']
(ormap-kv-vals
)map-keys-with-vals :: (K -> V -> K') -> Map[K, V] -> Map[K', V]
(ormap-kv-keys
)?
I seem to run into the former all the time and doing
map-kv
always seems unnecessary.