Function definition: Difference between revisions
Content added Content deleted
(ββES6-*: Add generator function example) |
Underscore (talk | contribs) (Added Coco.) |
||
Line 298: | Line 298: | ||
EXIT FUNCTION. |
EXIT FUNCTION. |
||
END FUNCTION myMultiply.</lang> |
END FUNCTION myMultiply.</lang> |
||
=={{header|Coco}}== |
|||
As CoffeeScript. In addition, Coco provides some syntactic sugar for accessing the <code>arguments</code> array reminiscent of Perl's <code>@_</code>: |
|||
<lang coco>multiply = -> @@0 * @@1</lang> |
|||
=={{header|CoffeeScript}}== |
=={{header|CoffeeScript}}== |