3 ms·
Yes. Though I like languages that help me to eliminate meaningless identifiers. Compare the number of identifiers in sum :: [Integer] -> Integer sum =
by eru 15y ago
Yes. Though I like languages that help me to eliminate meaningless identifiers.
Compare the number of identifiers in
sum :: [Integer] -> Integer
sum = foldr (+) 0
to
int sum (int size, int* array) {
int res;
for (int i = 0, res = 0; i++; i<size)
res += array[i];
return res; }
(Those are not exactly the same function, but I hope you can see them as idiomatic expressions of the same idea.)