Transform: Skip, Take, First, and Last
Learn about the skip, take, first, and last operators.
We'll cover the following
Skip
Other handy operators allow us to consume only a subset of the items emitted by the sequence.
The .skip(n)
operator ignores the first n
items emitted by the sequence and emits the remainder of the sequence. The .skip()
operator is also overloaded with .skip(time, timeUnit)
, which skips any item(s) emitted before the specified time window.
Get hands-on with 1400+ tech skills courses.