function Rx.startWith(c)assert(type(c)=="\116\097\098\108\101","\066\097\100 \118\097\108\117\101\115")return function(A)assert(Observable.isObservable(A),"\066\097\100 \111\098\115\101\114\118\097\098\108\101")return Observable.new(function(p)for c,A in pairs(c)do p:Fire(A)end return A:Subscribe(p:GetFireFailComplete())end)end end
--[=[
	Starts with the given values
	https://rxjs-dev.firebaseapp.com/api/operators/startWith

	@param values { T }
	@return (source: Observable) -> Observable
]=]
function Rx.startWith(values)
	assert(type(values) == "table", "Bad values")

	return function(source)
		assert(Observable.isObservable(source), "Bad observable")

		return Observable.new(function(sub)
			for _, item in pairs(values) do
				sub:Fire(item)
			end

			return source:Subscribe(sub:GetFireFailComplete())
		end)
	end
end
