Catamorphism: Difference between revisions

Content added Content deleted
m (Automated syntax highlighting fixup (second round - minor fixes))
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 2,802: Line 2,802:
Debug.Print WorksheetFunction.Product(s)
Debug.Print WorksheetFunction.Product(s)
End Sub</syntaxhighlight>
End Sub</syntaxhighlight>
=={{header|Vlang}}==
=={{header|V (Vlang)}}==
{{trans|go}}
{{trans|go}}
<syntaxhighlight lang="vlang">vfn main() {
<syntaxhighlight lang="v (vlang)">vfn main() {
n := [1, 2, 3, 4, 5]
n := [1, 2, 3, 4, 5]
Line 2,830: Line 2,830:
120
120
</pre>
</pre>

=={{header|WDTE}}==
=={{header|WDTE}}==
Translated from the JavaScript ES6 example with a few modifications.
Translated from the JavaScript ES6 example with a few modifications.