Actions
Feature #12240
closedcircle number arguments
Status:
Rejected
Assignee:
-
Target version:
-
Description
Often improvements about implicit block argument have been proposed, but in vain.
Such as:
[[1, 2], [3, 4]].map {|a1, a2| a1+a2} #=> [3, 7]
to
[[1, 2], [3, 4]].map {_1+_2}
Now, we (ko1 and nobu) found and propose the perfect solution.
[[1, 2], [3, 4]].map {①+②}
①
..⑳
denote the arguments upto 20.
https://github.com/ruby/ruby/compare/trunk...nobu:feature/number-arg
Actions
Like0
Like0Like0Like0Like0Like0Like0