Map (higher-order function): Difference between revisions

Content deleted Content added
m Language comparison: clean up, typo(s) fixed: a iterator → an iterator using AWB
Jfessler (talk | contribs)
Line 237:
| Array#map passes 3 arguments to ''func'': the element, the index of the element, and the array. Unused arguments can be omitted.
| Stops at the end of ''List1'', extending the shorter arrays with ''undefined'' items if needed.
 
|- valign="top"
| [[Julia (programming language)|Julia]]
| <code>map(''func'', ''list'')</code>
| <code>map(''func'', ''list1, list2'')</code>
| <code>map(''func'', ''list1, list2, ..., listN'')</code>
|
| ERROR: DimensionMismatch
 
|- valign="top"
| [[Logtalk]]