June 2017
Beginner to intermediate
274 pages
6h 49m
English
The map method takes a function as its first parameter. We can also pass it one or more intervals, which will be used to figure out the parameters for each call to the function:

Refer to the preceding code example, if we ask pool to map the foo function to the list [1, 2, 3] and [4, 5, 6], the result is that the foo function will be called with 1 and 4 as its parameters, called again with 2 and 5 as its parameters, and called a third time with 3 and 6 as its parameters.
Read now
Unlock full access