function Rx.from(A)if Promise.isPromise(A)then return Rx.fromPromise(A)elseif type(A)=="\116\097\098\108\101"then return Rx.of(unpack(A))else error("\091\082\120\046\102\114\111\109\093 - \099\097\110\110\111\116 \099\111\110\118\101\114\116")end end
--[=[
	Converts an item
	http://reactivex.io/documentation/operators/from.html

	@param item Promise | table
	@return Observable
]=]
function Rx.from(item)
	if Promise.isPromise(item) then
		return Rx.fromPromise(item)
	elseif type(item) == "table" then
		return Rx.of(unpack(item))
	else
		-- TODO: Iterator?
		error("[Rx.from] - cannot convert")
	end
end
