Function definition: Difference between revisions

→‎{{header|Coco}}: Mentioned `it`.
(Added Coco.)
(→‎{{header|Coco}}: Mentioned `it`.)
Line 304:
 
<lang coco>multiply = -> @@0 * @@1</lang>
 
Furthermore, when no parameter list is defined, the first argument is available as <code>it</code>:
 
<lang coco>double = -> 2 * it</lang>
 
=={{header|CoffeeScript}}==
845

edits