2

Suppose I have a function definition like this:

f x y z = ...

Now I have a list of each of the argument: [x],[y],[z]

How do I somehow map f over all the corresponding element in each list? That is, i want only the first element(or the second, third, but not with different positions) from all the lists to be applied to the function. For example:

f x1 y1 z1
f x2 y2 z2

but not

f x1 y2 z3 etc

1 Answer 1

9

I think you want the Prelude function zipWith3

Sign up to request clarification or add additional context in comments.

1 Comment

… and Hoogle can help you (osager) find it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.