class PureOp
Stateless Operator base for pure functions.
All arguments can be evt- and val-capable. If one of the arguments is an !-stream, it will be the only Input.hot. If there are no !-streams, all inputs are hot. Passing more than one !-stream is an argument error.
To use PureOp, extend the class and set/implement only pattern, type and Op:tick.
index
members
-
pureop.pattern
– the argument pattern. -
pureop\type(args)
– the result type or a method that returns it. -
pureop\setup(inputs, scope[, extra_inputs])
– set up inputs for a range of things.
details
members
-
– the argument pattern.
Must resolve to a simple sequence-table (depth 1).
- – the result type or a method that returns it.
-
– set up inputs for a range of things.
parameters:
- a sequence of RTNodes
- (unused)
- table of Inputs to merge into pureop result (optional)