Forum: Ruby-dev Improvement of Symbol and Proc

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 ko1 (Koichi Sasada) (Guest)
on 2012-10-30 00:46
(Received via mailing list)
Issue #4146 has been updated by ko1 (Koichi Sasada).

Assignee changed from ko1 (Koichi Sasada) to nobu (Nobuyoshi Nakada)

Feature #4146: Improvement of Symbol and Proc

Author: nobu (Nobuyoshi Nakada)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version:

 現在Symbol#to_procで %w[12 45 32].map(&:to_i) のようなことはできますが、

   %w[12 45 32].map(&:to_i(9)).map(&:*(2)) #=> [22, 82, 58]
   %w[abc def ghi].map(&:[1])              #=> ["b", "e", "h"]
This topic is locked and can not be replied to.