Skip to content

Add a chain method #80

Description

@vitormcruz

So that one can use:

(1 2 3 4 5 6 7 8 9) chain select: [ :num | num even ];
                                       collect: [ :a | a / 2].

instead of:

((#(1 2 3 4 5 6 7 8 9) select: [ :num | num even ])
collect: [ :a | a / 2]).

If interesting, I have an implementation that uses Avatar that I can provide. The downside is that they don't have a proper baseline, so I had to fork the project in order to add one, issued a pull request, but up until today they did not integrated it: guillep/avatar#14

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions