-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clojure Observable/from converts list to to an observable of a single (list) value #623
Comments
(defn hello
[& args]
(-> (Observable/from '("Ben" "George") ) ; hardcode the list
(.subscribe (rx/action [v] (println (str "Hello " v "!"))))))
(hello "Ben" "George") Works fine. Very strange. |
The Clojure compiler has many versions of (Observable/from ^java.lang.Iterable args) that should do it. |
Thanks, that works. Not cool though, it's reasonable to expect it to just work. |
Welcome to Java interop with dynamic types. |
:) |
jihoonson
pushed a commit
to jihoonson/RxJava
that referenced
this issue
Mar 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying out the clojure example code and the results seem wrong.
With the following:
I expected the observable to emit two distinct values, "Ben" and "George", before completing, resulting in one line of output per name.
However, the repl output is:
So it seems the entire
args
list is emitted as a single value.Tried 0.15.1 as well as current master at 7ec374c. clojure 1.5.1.
The text was updated successfully, but these errors were encountered: