Suppress the Observable items while a condition is not met.
observable := rxgo.Just(1, 2, 3, 4, 5)().SkipWhile(func(i interface{}) bool {
return i != 2
})
Output:
2
3
4
5
Suppress the Observable items while a condition is not met.
observable := rxgo.Just(1, 2, 3, 4, 5)().SkipWhile(func(i interface{}) bool {
return i != 2
})
Output:
2
3
4
5