Generic operator interface #285
Closed
emil14
started this conversation in
Standard Library
Replies: 1 comment
-
I'm not sure we need this generic interface, what problem are we trying to solve? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Generic operator
Can also be called "reducer", "reductor" or "accumulator" interface
Possible usage
Or simply
With such signature component (operator probably) can accept either:
Normal and nested streams could not be mixed. Such component produces result value via
v
outport and passes on its input arguments viaargs
variadic outport. Theseargs
could beT
messages orSubStream<T>
correspondingly.How such component interpret messages arrived at inports depends on specific component implementation (specification). For one component order may not matter (e.g.
sum
) and for other it will (e.g.mul
).Related to #281
Beta Was this translation helpful? Give feedback.
All reactions