From: jgomo3@... Date: 2020-03-01T16:07:07+00:00 Subject: [ruby-core:97319] [Ruby master Feature#16667] Allow parameters to Symbol#to_proc and Method#to_proc Issue #16667 has been reported by jgomo3 (Jes�s G�mez). ---------------------------------------- Feature #16667: Allow parameters to Symbol#to_proc and Method#to_proc https://bugs.ruby-lang.org/issues/16667 * Author: jgomo3 (Jes�s G�mez) * Status: Open * Priority: Normal ---------------------------------------- Allow parameters to Symbol#to_proc and Method#to_proc So we can say: ``` ruby ary.map(:dig.to_proc(:id)) ``` Instead of ``` ruby ary.map { |e| e.dig(:id) } ``` Oppening the posibilities to refine the `&` operator in the future, for something like: ``` ruby ary.map(&(:dig, :id)) ``` Related: * https://bugs.ruby-lang.org/issues/11161 * https://bugs.ruby-lang.org/issues/16435 -- https://bugs.ruby-lang.org/ Unsubscribe: