These methods are used to return the first and last occurrence of an item, based on the given condition. There are blocking versions available too. The available io.reactivex.Observable methods are:
- blockingFirst: Returns the first item emitted by the Observable
- blockingSingle: Returns the first Single item emitted by the Observable
- first: Returns the first item emitted by the Observable
- firstElement: Returns a Maybe that emits only the very first item
- single: Returns a Single that emits only the very first item
- singleElement: Returns a Maybe that emits only the very first Single
- blockingLast: Returns the last item emitted by the Observable
- last: Returns the last item emitted by the Observable
- lastElement: Returns ...