Remove Observable.sum from core API;
This commit is contained in:
parent
d7fd9830e6
commit
84384f3e57
@ -34,7 +34,6 @@ RxLua
|
|||||||
- [reject](#rejectpredicate)
|
- [reject](#rejectpredicate)
|
||||||
- [skip](#skipn)
|
- [skip](#skipn)
|
||||||
- [skipUntil](#skipuntilother)
|
- [skipUntil](#skipuntilother)
|
||||||
- [sum](#sum)
|
|
||||||
- [take](#taken)
|
- [take](#taken)
|
||||||
- [takeUntil](#takeuntilother)
|
- [takeUntil](#takeuntilother)
|
||||||
- [unpack](#unpack)
|
- [unpack](#unpack)
|
||||||
@ -451,16 +450,6 @@ Returns:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### `:sum()`
|
|
||||||
|
|
||||||
Returns a new Observable that produces the sum of the values of the original Observable as a single result.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
|
|
||||||
- `Observable`
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### `:take(n)`
|
#### `:take(n)`
|
||||||
|
|
||||||
Returns a new Observable that only produces the first n results of the original.
|
Returns a new Observable that only produces the first n results of the original.
|
||||||
|
7
rx.lua
7
rx.lua
@ -622,13 +622,6 @@ function Observable:skipUntil(other)
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Returns a new Observable that produces the sum of the values of the original Observable as a
|
|
||||||
-- single result.
|
|
||||||
-- @returns {Observable}
|
|
||||||
function Observable:sum()
|
|
||||||
return self:reduce(function(x, y) return x + y end, 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
--- Returns a new Observable that only produces the first n results of the original.
|
--- Returns a new Observable that only produces the first n results of the original.
|
||||||
-- @arg {number=1} n - The number of elements to produce before completing.
|
-- @arg {number=1} n - The number of elements to produce before completing.
|
||||||
-- @returns {Observable}
|
-- @returns {Observable}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user