Product of Array: Difference between revisions

(→‎[[Toka]]: Updated to work with Toka R1)
Line 296:
 
writeln(prodArray([](1, 2, 3, 4, 5)));
 
==[[Smalltalk]]==
[[Category:Smalltalk]]
 
#(1 2 3) inject: 1 into: [:product :number | product * number]
 
==[[Standard ML]]==
Anonymous user