Remove Observable.sum from core API;

This commit is contained in:
bjorn 2015-09-01 12:49:03 -07:00
parent d7fd9830e6
commit 84384f3e57
2 changed files with 0 additions and 18 deletions

View File

@ -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
View File

@ -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}