Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. function multiple args (mike h) ---------------------------------------------------------------------- Message: 1 Date: Sun, 17 Dec 2017 09:32:09 +0000 From: mike h <mike_k_hough...@yahoo.co.uk> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: [Haskell-beginners] function multiple args Message-ID: <a1b61983-8553-4371-8c38-5e3b3b43d...@yahoo.co.uk> Content-Type: text/plain; charset=utf-8 Hi, 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] z… etc. 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? Thanks Mike ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 114, Issue 24 ******************************************