fact: Definition map_imap `{∀ A, Insert K A (M A), ∀ A, Empty (M A), ∀ A, MapFold K A (M A)} {A B} (f : K → A → option B) (m : M A) : M B := list_to_map (omap (λ ix, (fst ix ,.) <$> uncurry f ix) (map_to_list m)).
imports: Coq(Permutation) stdpp(options)