I am currently learning haskell and one of my best resources codewars. It is really useful because it gives me other people’s answers, which can help me learn more. I was wondering why this answer worked:
getAge :: (Integral a, Read a) => String -> a
getAge = read . take 1
I understand the first line am confused about the “.”. as well as the arguments that take and the read funcs are taking, because they aren’t like the normal params the functions contain. I have done testing and still don’t understand why it works. Any help is much appreciated!