In GHCI prelude> using :t for finding the types of functions:
(.) :: (b -> c) -> (a -> b) -> a -> c
(:) :: a -> [a] -> [a]
((.)(:)) :: (a -> b) -> a -> [b] -> [b] -- (what happened here?)
I understand the result of the single functions, but when partially applied I do not.
what is the type of map map ? I found an answer on this page, how to do this algebraically. But I have a problem applying the same method on the ((.)(:))
.
What is the method when you want to know the type of ((.)(:))
? Is there a way of thinking that can be used for any partial application of a function?
Thanks in advance.