Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > Piping

Pipe operator

The Pipe operator takes an iterable value yielded by the left-side expression and generates a new enumeration which, when elements are retrieved, calls a given callable with ``(element, key)ยดยด as parameters and returns whatever callable returns. This similar to the piping (|) operation of most command shells.

  pipe-expr := expriterable "->" exprcallable 
See also  | Expressions  | Grammar
Contributes notes:
Add a note
What's new | Anvil