Skip to content

Commit e9166bf

Browse files
committed
uncomment
1 parent 253e201 commit e9166bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Batteries/Data/Array/Monadic.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

291291
theorem toList_mapFinIdxM [Monad m] [LawfulMonad m] (l : Array α)
292292
(f : (i : Nat) → α → (h : i < l.size) → m β) :

0 commit comments

Comments
 (0)