for/2 is an Erlang function exported by "age_lists" module. Calls Fun(Item) for each element Item from the List. The function returns list of results from the Fun calls. Fun(Item) could return any value, or: •break - will cause exit from the loop immediately. •continue - will skip the iteration and move to the next one. |
|
|