Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Obj-c
@import Foundation;
id s=[x valueForKeyPath:@"@sum.self"];

Plain-C like solutions also possible; showing here a more generic approach based on the key-value coding
for E of x loop
   S := S + E;
end loop;

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

New implementation...
< >
deleplace