flow.split
aliases: [ceammc/split], [split]
split data flow by external side-chain predicate
available since version: 0.3
Predicate side chain should accept value and return 1 (true) or 0 (false). If true, input value is outputed to first outlet. Otherwise to second outlet.
inlets:
- input value
type: control
- input from predicate side chain. If 1 received - output for first outlet. If 0 - to second.
type: control
outlets:
- values for which predicate side-chain returned true
type: control
- values for which predicate side-chain returned false
type: control
- value to predicate side-chain
type: control
keywords:
pass
functional
See also:
[flow.pass]
[flow.reject]
Authors: Serge Poltavsky
License: GPL3 or later