8000 Forward composition · Issue #220 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Forward composition #220
Closed
Closed
@cgarciae

Description

@cgarciae

Sorry to bother with this again, but I'd love to see forward composition in coconut, I am already using coconut as default python language and there are things I miss from other functional language like forward composition. See >> in Elm.

Id like this expression

k = f .. g .. h

be equivalent to

k = h |>> g |>> f

I'd guess its not that hard to implement since you can just transform it into the .. notation and continue from there. If I may, continuing the idea of |*> you can even add the |*>> operator to unpack the output or one function as arguments into the next function.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0