Sum of Array: Difference between revisions
Content deleted Content added
→[[Ruby]]: Less eww. |
|||
Line 319:
writeln(sumArray([](1, 2, 3, 4, 5)));
==[[Smalltalk]]==
[[Category:Smalltalk]]
#(1 2 3 4 5) inject: 0 into: [:sum :number | sum + number]
==[[Standard ML]]==
|