3 ms·
> I suppose the piping operator is infix. It's more like composition isn't it? object | dothis | dothat Is pretty much dothat(dothis(object)) If st
by OJFord 5y ago
> I suppose the piping operator is infix.
It's more like composition isn't it?
object | dothis | dothat
Is pretty much
dothat(dothis(object))
If stdout is considered the return value at least.
The pipe itself is just a sort of.. notation that a postfix function follows? Whereas in mathematics the function is prefixed, and the notation itself is infix and optional. (That's a knowingly rough and lazy description that any mathematician will hate...)
- kragen 5y agoI think dothat(dothis(object)) is more like < object dothis | dothat or dothis object | dothat while the full composition object | dothis | dothat is more like dothis(dothat(object(stdin_and_everything_else)))