Skip to content

Commit 0c9e42e

Browse files
committed
Rename Array.foldl'.go
1 parent eb955f5 commit 0c9e42e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/HashMap/Internal/Array.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ unsafeUpdateM ary idx b =
380380
{-# INLINE unsafeUpdateM #-}
381381

382382
foldl' :: (b -> a -> b) -> b -> Array a -> b
383-
foldl' f = \ z0 ary0 -> go ary0 (length ary0) 0 z0
383+
foldl' f = \ z0 ary0 -> foldl'_ ary0 (length ary0) 0 z0
384384
where
385-
go ary n i !z
385+
foldl'_ ary n i !z
386386
| i >= n = z
387387
| otherwise
388388
= case index# ary i of
389-
(# x #) -> go ary n (i+1) (f z x)
389+
(# x #) -> foldl'_ ary n (i+1) (f z x)
390390
{-# INLINE foldl' #-}
391391

392392
foldr' :: (a -> b -> b) -> b -> Array a -> b

0 commit comments

Comments
 (0)