We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb955f5 commit 0c9e42eCopy full SHA for 0c9e42e
Data/HashMap/Internal/Array.hs
@@ -380,13 +380,13 @@ unsafeUpdateM ary idx b =
380
{-# INLINE unsafeUpdateM #-}
381
382
foldl' :: (b -> a -> b) -> b -> Array a -> b
383
-foldl' f = \ z0 ary0 -> go ary0 (length ary0) 0 z0
+foldl' f = \ z0 ary0 -> foldl'_ ary0 (length ary0) 0 z0
384
where
385
- go ary n i !z
+ foldl'_ ary n i !z
386
| i >= n = z
387
| otherwise
388
= case index# ary i of
389
- (# x #) -> go ary n (i+1) (f z x)
+ (# x #) -> foldl'_ ary n (i+1) (f z x)
390
{-# INLINE foldl' #-}
391
392
foldr' :: (a -> b -> b) -> b -> Array a -> b
0 commit comments