Skip to content

Commit 7333bf1

Browse files
Merge pull request ReactiveX#715 from y-p/PR_GH623
Add missing type hint to clojure example
2 parents 167cc81 + 425df5f commit 7333bf1

File tree

1 file changed

+3
-1
lines changed
  • language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples

1 file changed

+3
-1
lines changed

language-adaptors/rxjava-clojure/src/examples/clojure/rx/lang/clojure/examples/rx_examples.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
(defn hello
2929
[& args]
30-
(-> (Observable/from args)
30+
(->
31+
; type hint required due to `Observable/from` overloading
32+
(Observable/from ^java.lang.Iterable args)
3133
(.subscribe (rx/action [v] (println (str "Hello " v "!"))))))
3234

3335
; To see output

0 commit comments

Comments
 (0)