lautis/piperator

Using >> method

Opened this issue · 0 comments

thadeu commented

Hey, great gem!

But, what do you think, that use | method instead ., for example like this.

Piperator
  | ->(values) { values.lazy.map { |i| i * 3 } }
  | ->(values) { values.sum }
  call([1, 2, 3])
# => 18