Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Operator

pass — copy input values to output

Synopsis

pass

Description

The pass operator outputs a copy of each input value. It is typically used with operators that handle multiple branches of the pipeline such as fork and join.

Examples


Copy input to output

# spq
pass
# input
1
2
3
# expected output
1
2
3

Copy each input value to three parallel pipeline branches and leave the values unmodified on one of them

# spq
fork
  ( pass )
  ( upper(this) )
  ( lower(this) )
| sort
# input
"HeLlo, WoRlD!"
# expected output
"HELLO, WORLD!"
"HeLlo, WoRlD!"
"hello, world!"