list - Applying a function with multiple inputs using Map? (Haskell) -


Cadden people,

Currently trying to complete a small homework, and There is a problem where I'm trying to implement a map of a function that accepts multiple inputs.

So I'm using the process list f (x: xs) = map accelerateList f xs xx

The process list is given a Floating Value (F) and a list is given Which changes it to another list

To increase the list, a floating value (F) is a list and a list object through which it returns the second list object

Know that my Quick List Code is correct, but I want to get this code working for my life. Can not get Ntaks:

  processlist :: float - & gt; [Object] - & gt; F [x] x = x [x] x = x [x] x = x [x] x = x [x] x = x [x] I am scratching my head for about 3 hours. I know that something like  actually  is simple.   

Some of you might have used some brackets here first:

 < Code> map fasten list xxxx  

function map takes exactly two arguments (no five), then you should do something like this:

  map (acceleration list xxx) xs  

But on the other hand, it is not that the problem with your function signature is that you have your solution in a good way Not organized by Or may be a different question, but stating that will certainly help you are trying to accomplish with the Quick-function (or which ever "top").


Comments