Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Dart
var s = x.fold(0, (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