Skip to content

Using >> method #18

Description

@thadeu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions