11.8. lpipe macro
The LPIPE module provides the lpipe macro for passing multiple block
arguments to a single function call. While <| handles the first block
argument, lpipe adds subsequent blocks on following lines.
All functions and symbols are in “lpipe” module, use require to get access to it.
require daslib/lpipe
Example:
require daslib/lpipe
def take2(a, b : block) {
invoke(a)
invoke(b)
}
[export]
def main() {
take2() {
print("first\n")
}
lpipe() {
print("second\n")
}
}
// output:
// first
// second