[Haskell-cafe] Mission: To take args from a list... generally

Joel Koerwer joelkoerwer at gmail.com
Thu Oct 5 01:35:59 EDT 2006


Thanks for the link. So many variations on a theme:
    n-vars to a list : Oleg's solution for polyvariadic functions
    list + n-adic function -> value : This thread
    list of (n_i)-adic functions + argument -> list of (n_i-1)-adic
functions : The link you gave.

The first two had very similar answers, and I have a feeling the third
could be answered with yet another application of the same idea.

As I see it, the answer given in that link amounts to wrapping the
function so that it will fit in a homogeneous list. The user still has
to wrap their functions with multiple 'cook's.

Joel

On 10/5/06, tpledger at ihug.co.nz <tpledger at ihug.co.nz> wrote:
> This came up a while ago (but with a list of functions of
> different arities, all being fed one argument).  I found
> Scott Turner's pure Haskell 98 solution very illuminating:
>
>
> http://www.haskell.org/pipermail/haskell-cafe/2000-November/001332.html
>
> Regards,
> Tom
>


More information about the Haskell-Cafe mailing list