Step into Swift logo

What is the Skip Operator in RxSwift?

Skip Operator

RxSwift: Skip Operator

skip(n)

  • Skip a certain defined number of elements.
  • Use case would be for events that have happened in the past that you do not care about.
  • Ignores from the first element until the supplied elements
----1--2-----3--4---->

skip(2)

-------------3--4---->

< All Posts