some functions
add :: Num a -= a -> a -> a
twice :: (a -> a) -> a -> a
map :: (a -> a) -> [a] -> [a]
my recursive map
mfilter :: (a -> Bool) -> [a] -> [a]
mrfilter :: (a -> Bool) -> [a] -> [a]
more examples
Other playground with hof
Iterate over the solution.
foldr :: (a -> b -> b) -> b -> [a] -> b
example
mfoldl :: (a -> b -> b) -> b -> [a] -> b
Some more example for mfoldl
some more example for mfoldr
andr using foldr
productr using foldr
revr using foldr
andr using foldr
andr using foldr