Sum and product of an array: Difference between revisions
Content added Content deleted
No edit summary |
(→Joy: add) |
||
Line 1,626: | Line 1,626: | ||
3628800 |
3628800 |
||
]</pre> |
]</pre> |
||
=={{header|Joy}}== |
|||
<syntaxhighlight lang="joy">[1 2 3 4 5] 0 [+] fold.</syntaxhighlight> |
|||
<syntaxhighlight lang="joy">[1 2 3 4 5] 1 [*] fold.</syntaxhighlight> |
|||
=={{header|jq}}== |
=={{header|jq}}== |