I'am learning haskell and I don't realy understand function definitions, for example:
module TestModule where
iter :: Int -> (a -> a) -> (a -> a)
iter n f
| n>0 = f . iter (n-1) f
| otherwise = id
iter_2 n f = foldr (.) id (replicate n f)
What I suppose to give this function? I have loaded this function via console and don't really understand how to use it.
My question how to use this function via console. Like "iter 5 ???"