Re:Pixie: A sweet Clojure-ish language
by gleenn on Monday March 09, 2015 @07:51AM
(#9170384)
You can do it in Ruby with 4 parens, or even 0 if inc is really just +1. I wouldn't ever write it with so few but if we're really going down this rabbit hole then we ahould get it right.
[ Parent
| on HN ]
Please feel free to contribute a Ruby example (as long as it's normal and idiomatic, this isn't a competition)! I've not written Ruby for years.
(inc was just a random function for the sake of showing invocation so it's not really fair to use operators)