[Haskell-beginners] function multiple args

mike h mike_k_houghton at yahoo.co.uk
Sun Dec 17 09:32:09 UTC 2017


I have a number of functions like these:

v :: Int -> [a] -> [a]
w :: Int -> Int -> [a] -> [a]
x :: a -> a -> [a] -> [a]

y :: a -> b ->…  <other args>... ->  [a] -> [a]

where there are any number of args of different types but the last two are common to all the functions i.e. they all have  [a] -> [a] 

What I’m trying to do is build a collection (ordered) of such functions and then apply each in turn to a [a] to get the final [a]. What would be the best approach to this? 



More information about the Beginners mailing list