File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ module Data.Map.Internal (
262
262
, foldrWithKey'
263
263
, foldlWithKey'
264
264
265
- -- ** Strict monadic folds
266
- , foldlWithKeyM'
265
+ -- ** Monadic folds
266
+ , foldlWithKeyM
267
267
268
268
-- * Conversion
269
269
, elems
@@ -3365,16 +3365,16 @@ foldlWithKey' f z = go z
3365
3365
in go (f z'' kx x) r
3366
3366
{-# INLINE foldlWithKey' #-}
3367
3367
3368
- -- | /O(n)/. Monadic variant of 'foldlWithKey\' '.
3369
- foldlWithKeyM' :: Monad m => (a -> k -> b -> m a ) -> a -> Map k b -> m a
3370
- foldlWithKeyM' f z = go z
3368
+ -- | /O(n)/. Monadic variant of 'foldlWithKey'.
3369
+ foldlWithKeyM :: Monad m => (a -> k -> b -> m a ) -> a -> Map k b -> m a
3370
+ foldlWithKeyM f z = go z
3371
3371
where
3372
- go ! z' Tip = return z'
3372
+ go z' Tip = return z'
3373
3373
go z' (Bin _ kx x l r) = do
3374
3374
! z'' <- go z' l
3375
3375
z''' <- f z'' kx x
3376
3376
go z''' r
3377
- {-# INLINE foldlWithKeyM' #-}
3377
+ {-# INLINE foldlWithKeyM #-}
3378
3378
3379
3379
-- | /O(n)/. Fold the keys and values in the map using the given monoid, such that
3380
3380
--
You can’t perform that action at this time.
0 commit comments