Array Sum Golfed
a = [1, 2, 3, 6, 9];
sum = eval(a.join`+`);
Found myself doing something like this a few times… easy golfed array sum. I saw this over at codegolf stackexchange here.
That whole thread is a great. I plan to post more from there in the future.