Emit only those items from an Observable that pass a predicate test.
observable := rxgo.Just(1, 2, 3)().
Filter(func(i interface{}) bool {
return i != 2
})
Output:
1
3
Emit only those items from an Observable that pass a predicate test.
observable := rxgo.Just(1, 2, 3)().
Filter(func(i interface{}) bool {
return i != 2
})
Output:
1
3