Send Beginners mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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 <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] function multiple args
Message-ID: <[email protected]>
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
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 114, Issue 24
******************************************

Reply via email to