subject

Function mapReduce that takes 4 parameters: two functions (the first will be used in lists:map, the second one in lists:foldl), an accumulator value for fold, and a list, and returns a value calculated by first applying a map to the list, then applying a fold to the list returned from the map; use map and fold defined in the list library but NOT mapfold; for example if the first function flips the sign and the second one calculates the product, then the list [3,6] should result in [-3,-6] after sending it to the map, and in 18 after sending it to fold • when calling the function from the shell, use an anonymous function as the first argument in the call that flips the sign and use an anonymous function for the second argument in the call that calculates the product
• add function flip(N) -> -1 * N to your lab06.erl and then call function mapReduce from the shell again, this time passing flip as the first argument

This is for Erlang language.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
You know the right answer?
Function mapReduce that takes 4 parameters: two functions (the first will be used in lists:map, the...
Questions
question
Mathematics, 03.08.2019 15:00
question
Health, 03.08.2019 15:00
Questions on the website: 13722363