Pipeline operator (tweet) #4835
ggreif
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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