Sum and product of an array: Difference between revisions

m
Added a Trith example.
m (→‎{{header|Scala}}: product must be mutable)
m (Added a Trith example.)
Line 970:
=={{header|TI-83 BASIC}}==
Use the built-in functions <pre>sum()</pre> and <pre>prod()</pre>.
 
=={{header|Trith}}==
<lang toka>[1 2 3 4 5] 0 [+] reduce</lang>
<lang toka>[1 2 3 4 5] 1 [*] reduce</lang>
 
=={{header|Toka}}==