[Haskell-cafe] calling a variable length parameter lambda
expression
Miguel Mitrofanov
miguelimo38 at yandex.ru
Tue May 5 12:56:32 EDT 2009
Short answer: that's impossible.
Well, with some oleging it should be possible, but the very fact that
you're trying to do something like this indicates that you're doing
something wrong. Where did this list of parameters came from? May be,
you can apply your function to them one at a time, as they arrive?
On 5 May 2009, at 20:49, Nico Rolle wrote:
> Hi everyone.
>
> I have a problem.
> A function is recieving a lambda expression like this:
> (\ x y -> x > y)
> or like this
> (\ x y z a -> (x > y) && (z < a)
>
> my problem is now i know i have a list filled with the parameters for
> the lambda expression.
> but how can i call that expression?
> [parameters] is my list of parameters for the lambda expression.
> lambda_ex is my lambda expression
>
> is there a function wich can do smth like that?
>
> lambda _ex (unfold_parameters parameters)
>
> best regards
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list