Function definition: Difference between revisions
→{{header|Coco}}: Mentioned `it`.
Underscore (talk | contribs) (Added Coco.) |
Underscore (talk | contribs) (→{{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}}==
|