Content deleted Content added
undo User:Ushkin N |
→Language comparison: style="font-size: 85%" |
||
Line 121:
In languages which support [[first-class function]]s, <code>map</code> may be [[partial application|partially applied]] to ''lift'' a function that only works on a single value to an element-wise equivalent that works on an entire container; for instance, <code>map square</code> is a Haskell function which squares each element of a list.
{| class="wikitable" style="font-size: 85%"
|+ Map in various languages
! Language !! Map !! Map 2 lists !! Map n lists !! Notes !! Handling lists of different lengths
|