File tree 7 files changed +36
-0
lines changed
7 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,12 @@ id: embedding
14
14
<tab-code label="Kotlin" language="" url=""></tab-code>
15
15
<tab-code label="JRuby" language="" url=""></tab-code>
16
16
</tabs-panel >
17
+
18
+ <tabs-panel flex >
19
+ <tab-code label="Java" language="java" url="https://api.github.com/repos/GeorgiKhomeriki/RxCourse/contents/HeadTail.java"></tab-code>
20
+ <tab-code label="Scala" language="scala" url="https://api.github.com/repos/GeorgiKhomeriki/RxCourse/contents/Gui.java"></tab-code>
21
+ <tab-code label="Groovy" language="groovy" url="https://api.github.com/repos/GeorgiKhomeriki/RxCourse/contents/Flatmap.java"></tab-code>
22
+ <tab-code label="Clojure" language="scala" url="https://api.github.com/repos/GeorgiKhomeriki/RxCourse/contents/Game.java"></tab-code>
23
+ <tab-code label="Kotlin" language="" url=""></tab-code>
24
+ <tab-code label="JRuby" language="" url=""></tab-code>
25
+ </tabs-panel >
Original file line number Diff line number Diff line change
1
+ (defn hello
2
+ [&rest]
3
+ (-> (Observable/from &rest)
4
+ (.subscribe #(println (str " Hello " % " !" )))))
Original file line number Diff line number Diff line change
1
+ (hello ["Ben" "George"])
2
+ Hello Ben!
3
+ Hello George!
Original file line number Diff line number Diff line change
1
+ def hello (String [] names ) {
2
+ Observable . from(names)
3
+ .subscribe({ println " Hello " + it + " !" })
4
+ }
Original file line number Diff line number Diff line change
1
+ hello("Ben", "George")
2
+ Hello Ben!
3
+ Hello George!
Original file line number Diff line number Diff line change
1
+ public static void hello (String ... names ) {
2
+ Observable .from (names ).subscribe (new Action1 <String >() {
3
+
4
+ @ Override
5
+ public void call (String s ) {
6
+ System .out .println ("Hello " + s + "!" );
7
+ }
8
+
9
+ });
10
+ }
Original file line number Diff line number Diff line change
1
+ hello("Ben", "George");
2
+ Hello Ben!
3
+ Hello George!
You can’t perform that action at this time.
0 commit comments