|
@@ -30,6 +30,7 @@ RxLua
|
|
- [concat](#concatsources)
|
|
- [concat](#concatsources)
|
|
- [contains](#containsvalue)
|
|
- [contains](#containsvalue)
|
|
- [count](#countpredicate)
|
|
- [count](#countpredicate)
|
|
|
|
+ - [defaultIfEmpty](#defaultifemptyvalues)
|
|
- [distinct](#distinct)
|
|
- [distinct](#distinct)
|
|
- [distinctUntilChanged](#distinctuntilchangedcomparator)
|
|
- [distinctUntilChanged](#distinctuntilchangedcomparator)
|
|
- [filter](#filterpredicate)
|
|
- [filter](#filterpredicate)
|
|
@@ -333,6 +334,16 @@ Returns an Observable that produces a single value representing the number of va
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
+#### `:defaultIfEmpty(values)`
|
|
|
|
+
|
|
|
|
+Returns a new Observable that produces a default set of items if the source Observable produces no values.
|
|
|
|
+
|
|
|
|
+| Name | Type | Default | Description |
|
|
|
|
+|------|------|---------|-------------|
|
|
|
|
+| `values` | *... | | Zero or more values to produce if the source completes without emitting anything. |
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+
|
|
#### `:distinct()`
|
|
#### `:distinct()`
|
|
|
|
|
|
Returns a new Observable that produces the values from the original with duplicates removed.
|
|
Returns a new Observable that produces the values from the original with duplicates removed.
|