[#97678] [Ruby master Feature#16752] :private param for const_set — bughitgithub@...
Issue #16752 has been reported by bughit (bug hit).
5 messages
2020/04/02
[ruby-core:97861] [Ruby master Feature#16781] alias :fold :reduce
From:
0xfffffff0@...
Date:
2020-04-12 20:47:24 UTC
List:
ruby-core #97861
Issue #16781 has been reported by 0x81000000 (0x81000000 0x81000000). ---------------------------------------- Feature #16781: alias :fold :reduce https://bugs.ruby-lang.org/issues/16781 * Author: 0x81000000 (0x81000000 0x81000000) * Status: Open * Priority: Normal ---------------------------------------- 1. Method "collect" has short synonym "map", short synonym of "inject" and "reduce" doesn't exist. 2. Name "fold" is more common/popular than "reduce" or "inject". In my own code I use: ``` module Enumerable alias :fold :reduce end ``` I have no idea how to properly add "fold" in Ruby's stdlib/corelib. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>