37. lpipe macro

The lpipe module implements lpipe pattern, which allows piping blocks and expressions onto the previous line.

All functions and symbols are in “lpipe” module, use require to get access to it.

require daslib/lpipe

37.1. Call macros

lpipe

This macro will implement the lpipe function. It allows piping blocks the previous line call. For example:

def take2(a,b:block)
    invoke(a)
    invoke(b)
...
take2 <|
    print("block1\n")
lpipe <|    // this block will pipe into take2
    print("block2\n")