Pipeline operator (tweet) #4835
ggreif
started this conversation in
Show and tell
Replies: 1 comment
-
Scheduled for 4/25 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Many languages provide a way to chain function calls by invoking methods on the result of the previous call. This is called fluent syntax. In Motoko such a practice would have bad performance characteristics, so we have the pipeline operator instead:
Here the special binding
_
stands for the value originating from the preceding pipeline stage.Beta Was this translation helpful? Give feedback.
All reactions