Skip to content

Commit e10faa9

Browse files
committed
list-ops: add explicit args
1 parent df35be1 commit e10faa9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

exercises/list-ops/src/ListOps.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ import Prelude hiding
1313
( length, reverse, map, filter, foldr, (++), concat )
1414

1515
foldl' :: (b -> a -> b) -> b -> [a] -> b
16-
foldl' = error "You need to implement this function."
16+
foldl' f z xs = error "You need to implement this function."
1717

1818
foldr :: (a -> b -> b) -> b -> [a] -> b
19-
foldr = error "You need to implement this function."
19+
foldr f z xs = error "You need to implement this function."
2020

2121
length :: [a] -> Int
22-
length = error "You need to implement this function."
22+
length xs = error "You need to implement this function."
2323

2424
reverse :: [a] -> [a]
25-
reverse = error "You need to implement this function."
25+
reverse xs = error "You need to implement this function."
2626

2727
map :: (a -> b) -> [a] -> [b]
28-
map = error "You need to implement this function."
28+
map f xs = error "You need to implement this function."
2929

3030
filter :: (a -> Bool) -> [a] -> [a]
31-
filter = error "You need to implement this function."
31+
filter p xs = error "You need to implement this function."
3232

3333
(++) :: [a] -> [a] -> [a]
3434
xs ++ ys = error "You need to implement this function."
3535

3636
concat :: [[a]] -> [a]
37-
concat = error "You need to implement this function."
37+
concat xss = error "You need to implement this function."

0 commit comments

Comments
 (0)