Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Js
var s = x.reduce((a, b) => a + b, 0);
var s = x.reduce((a, b) => a + b)
for E of x loop
   S := S + E;
end loop;

x is an array.
S is initialized to be 0.

New implementation...
< >
deleplace