RxSwift: StartWith Operator
.startWith(_:)
- Emits a supplied sequence of elements before beginning to emit elements from the source Observable.
- Must be the same type as the Observable elements.
- If you want to append to the end, use the
.concat(_:)
concat
operator.
----------7-------6--------->
startWith(8)
-8--------7-------6--------->
< All Posts