Determine whether an Observable emits a particular item or not.
observable := rxgo.Just(1, 2, 3)().Contains(func(i interface{}) bool {
return i == 2
})
Output:
true
Determine whether an Observable emits a particular item or not.
observable := rxgo.Just(1, 2, 3)().Contains(func(i interface{}) bool {
return i == 2
})
Output:
true