I have a function that takes 3 functions and combines them to alter a list argument.
For example a test case call would be: chain init tail reverse "Haskell!" the output should be lleksa
I've tried to do this problem a few different ways including using the map function but I kept getting association problems. so i did
chain :: Ord a => [a] -> a
chain f g h x = f.g.h$x
and the error was Couldn't match expected type [t0 -> t1 -> t2 -> a0]
When I type the problem directly in GHCi like by writing, for instance, init.tail.reverse$"Haskell!" it works properly
Is there even a way to include three function arguments? I've only seen two in examples.
=- Watts