Iterate an algorithm over a list. The algorithm is expected to take two objects, the current list item, and the result from the previous iteration or the value of first for the first iteration.
Usage | Returns |
---|---|
List.iterate(function, first) | Object |
Argument | Type | Details |
---|---|---|
this: list | List | |
function | Algorithm | |
first | Object |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!