Logic operators deal with Boolean results, giving the programmer the ability to take decisions on sequence values in a reactive way by producing other sequences. They are the respective of LINQAny
, All
, and similar operators.
All these operators produce a new sequence containing a single message that will contain a result of a Boolean question.
The Every
operator is the reactive version of the LINQ All operator, returning if all the elements of a sequence comply with a specified statement.
The Some
operator is the reactive version of the LINQ Any
operator, returning if any element in a sequence complies with a specified statement.
The Includes
operator is the reactive version of the LINQ Contains
operator, returning if any element in the sequence is the one specified.
Boolean operators, similar to mathematical ones, need the source sequence complete before flowing their response messages.
Here's an example:
var s17 = new Subject<double>(); var every...