haskell - Function evaluation result -


Manually FC [F1, F2] (\ x -> 2) 3 / > But I do not know how to match the three parameters: [F1, F2], (\ x -> 2) and 3 function definition, any help?

Function Definition:

  fc xss = \ f - & gt; Let's open x y = x Y foldl1 ope xss f1, f2 :: int - & gt; Bull F1X = (X`Mode`3) == 0 f2x = (x` mod`5) == 0   

Thanks,
Sebastien

OK, do something first Î · -expension < Pre> FC :: [A-> B] - & gt; (B-> A) - & gt; A-> B. FC XSS F = Let's open x y = x f In the Y \ q - & gt; Foldr1 ope xss q fc xss f q = let's ope x y = x f Then folders xss q

You can type (== 0) as [f1, f2] (`Mod`3) : (== 0). (`Mod`5): [] .

Now it should be quite easy, to remember that a right point simply changes all the : with fold function.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -