impulse

inline fun <A> Event<A>.impulse(zero: @UnsafeVariance A): Behavior<A>(source)

Builds a dirac impulse whose value is equal to the event values when the even has fired, and whole value is equal to zero otherwise


inline fun <A, B> Event<A>.impulse(zero: B, value: B): Behavior<B>(source)

Builds a dirac impulse whose value is equal to value whenever the event fires, and zero otherwise.