Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pp:l03 [2022/03/20 15:12] bogdan.deac [3.3. Brain twisters] |
pp:l03 [2022/03/20 15:13] (current) bogdan.deac |
||
---|---|---|---|
Line 111: | Line 111: | ||
<code haskell> | <code haskell> | ||
capList :: [Integer -> Bool] -> Integer -> Bool | capList :: [Integer -> Bool] -> Integer -> Bool | ||
- | </c | + | </code> |
- | ode> | + | |
===== 3.3. Brain twisters ===== | ===== 3.3. Brain twisters ===== | ||
3.3.1. Implement ''map'' using ''foldl'' and ''foldr'' | 3.3.1. Implement ''map'' using ''foldl'' and ''foldr'' | ||
+ | |||
<code haskell> | <code haskell> | ||
mapr :: (a -> b) -> [a] -> [b] | mapr :: (a -> b) -> [a] -> [b] |