General

Profile

tny (Tony Sunny)

  • Login: tny
  • Registered on: 11/20/2018
  • Last sign in: 11/20/2018

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

11/20/2018

02:29 PM Ruby master Feature #15323: [PATCH] Proposal: Add Enumerable#filter_map
Could't we use reduce for this?
~~~ ruby
(1..10).reduce([]) { |a, i| i.even? ? a << (i * 2) : a }
~~~
tny (Tony Sunny)

Also available in: Atom