Function composition syntax
oriol-bugzilla at hotmail.com
Thu Sep 29 01:23:40 UTC 2016
> Create a callable-only function that calls its left operand with the original arguments and `this`, then calling its right operand with the result and the same `this`.
IMHO, the order seems wrong. Not sure if programming languages do it differently, but in math composition works like this:
(f ? g)(x) = f(g(x))
So I think it would be more intuitive to use `<=<`, which would call the right operand first, and then call the left operand with the result of the right one.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss