$ ./guess_the_languageProgramming Languages
Programming Languages · medium · #475

Which programming language is this?

total = [1, 2, 3].inject(:+)

Answer: Ruby

inject with a bare operator symbol folds the collection; that call form is Ruby-only.
Play Programming Languages ▸