Replies: 2 comments 24 replies
-
It is a good suggestion and I also feel it useful. Anyway the operator of Here is an example when we try it in the current version. I guess the new operator will do the same thing, but is it correct? function compose(...funcs) {
return { &(a) => funcs.reduce({ &(r, f) => f(r) }, a) };
}
var f = { => _1 * 2 };
var g = { => _1 + 3 };
10 |> compose(f, g) |> System.println; //=> 23 Best regards. |
Beta Was this translation helpful? Give feedback.
-
ProposalThis is a current consideration about a function composition operator. OverviewThe operator ImplementationStrategy
Simple Case
|
Beta Was this translation helpful? Give feedback.
-
I saw you commit a pipeline operator implementation 5435287.
So, how about composition operator?
other implmentations
In F#
In Haskell
In Scala
Honestry, they are simply function, not operator. but convenienced.
What do you think about?
Beta Was this translation helpful? Give feedback.
All reactions