Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on "Useless syntax sugar": Numbered block parameters in Ruby. Parent comment
You absolutely can, if you know the specific one (that is, type) you need.
E.g.,
gt = Integer.instance_method(:>).method(:bind_call) # gt is a two arg callable functionally equivalent to ->(a,b) { a < b } for Integer a, Any b
gt = -> { _1 > _2 }
There are no comments on this comment yet.
You absolutely can, if you know the specific one (that is, type) you need.
E.g.,
Of course, doing this instead of just doing: loses Ruby duck-typing and dynamism with regard to the first parameter; which may be acceptable in some cases, but not others.