Continuous For Each
Execute a function for each element of a list.
Description
Execute the specified function to each element of the list. Unlike For Each
, Continuous For Each
keeps all elements in memory and reacts to changes in the content of the list. It will therefore run the iterator
function on current and future elements of the list.
This functions similarly to Javascript's <a href="https://medium.com/@JeffLombardJr/understanding-foreach-map-filter-and-find-in-javascript-f91da93b9f2c" target="_blank">forEach()</a>
Inputs
- list (List): The list to process
- iterator (Continuous Iterator): The function to call for each element of the list.
It has no outputs, and the following inputs:
-item (Object)
: The current item of the list.
-rank (Number)
: The rank of the current item.
-list (List)
: The full list being iterated.