Product of Array: Difference between revisions

Content added Content deleted
(→‎[[Toka]]: Updated to work with Toka R1)
Line 296: Line 296:


writeln(prodArray([](1, 2, 3, 4, 5)));
writeln(prodArray([](1, 2, 3, 4, 5)));

==[[Smalltalk]]==
[[Category:Smalltalk]]

#(1 2 3) inject: 1 into: [:product :number | product * number]


==[[Standard ML]]==
==[[Standard ML]]==