Re:Working pipe operator today in pure JavaScript
by dominicrose on Wednesday October 08, 2025 @11:35AM
(#45517325)
It's an interesting experiment but standard Ruby is expressive enough.
[9, 64].map { Math.sqrt(_1) } #=> [3.0, 8.0]
For the first example I would just define a method that uses local variables. They're local so it's not polluting context.
https://github.com/lendinghome/pipe_operator#-pipe_operator