Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
(defn sum [x] (reduce + x))

(sum [1 20 300])
;;=> 321

x is a collection of integers.
for E of x loop
   S := S + E;
end loop;

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

New implementation...
< >
deleplace