3 ms·
Even without patching the standard library: irb> [[1,2],[3,4]].each_with_object(:*).map(&:reduce) => [2, 12] Given the mechanics of this I wouldn't cl
by inopinatus 3y ago
Even without patching the standard library:
irb> [[1,2],[3,4]].each_with_object(:*).map(&:reduce)
=> [2, 12]
Given the mechanics of this I wouldn't claim it meets a strict definition of point-free, but that's an iterated application of operator-like methods omitting any explicit named/positional argument references.