inverted specification
This is the engineering specification for the MotionObservable
operator: inverted
.
Overview
inverted
emits the result of inverting the upstream value.
Example usage
stream.inverted()
upstream | downstream
true | false
true | false
false | true
MVP
Expose an inverted operator API
Use _map
to implement the operator. Emit the result of !upstream
.
class MotionObservable<Bool> {
public func inverted() -> MotionObservable<Bool>