File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -283,10 +283,10 @@ theorem toList_filterMapM [Monad m] [LawfulMonad m] (a : Array α) (f : α → m
283283 rw [List.filterMapM_toArray]
284284 simp only [Functor.map_map, id_map']
285285
286- -- theorem toList_flatMapM [Monad m] [LawfulMonad m] (a : Array α) (f : α → m (Array β)) :
287- -- toList <$> a.flatMapM f = a.toList.flatMapM (fun a => toList <$> f a) := by
288- -- rw [ List.flatMapM_toArray ]
289- -- simp only [Functor.map_map, id_map']
286+ theorem toList_flatMapM [Monad m] [LawfulMonad m] (a : Array α) (f : α → m (Array β)) :
287+ toList <$> a.flatMapM f = a.toList.flatMapM (fun a => toList <$> f a) := by
288+ rw [List.flatMapM_toArray]
289+ simp only [Functor.map_map, id_map']
290290
291291theorem toList_mapFinIdxM [Monad m] [LawfulMonad m] (l : Array α)
292292 (f : (i : Nat) → α → (h : i < l.size) → m β) :
You can’t perform that action at this time.
0 commit comments