Commit 3900cb83 authored by Julien Debon's avatar Julien Debon Committed by Marge Bot

Apply suggestion to libraries/base/GHC/List.hs

parent 768e5866
Pipeline #15557 passed with stages
in 735 minutes and 12 seconds
......@@ -243,7 +243,7 @@ filterFB c p x r | p x = x `c` r
-- 42
-- >>> foldl (-) 100 [1..4]
-- 90
-- >>> foldl (\reverseString nextChar -> nextChar : reverseString) "foo" ['a', 'b', 'c', 'd']
-- >>> foldl (\reversedString nextChar -> nextChar : reversedString) "foo" ['a', 'b', 'c', 'd']
-- "dcbafoo"
foldl :: forall a b. (b -> a -> b) -> b -> [a] -> b
{-# INLINE foldl #-}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment