Skip to content

Commit 41c22d9

Browse files
committed
Linked to examples
1 parent 8467f04 commit 41c22d9

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

Part 2 - Sequence Basics/1. Creating a sequence.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Subscription subscription = values.subscribe(
2020
() -> System.out.println("Completed")
2121
);
2222
```
23-
24-
Output
23+
[Output](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java)
2524
```
2625
Received: one
2726
Received: two
@@ -41,8 +40,7 @@ Subscription subscription = values.subscribe(
4140
() -> System.out.println("Completed")
4241
);
4342
```
44-
45-
Output
43+
[Output](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java)
4644
```
4745
Completed
4846
```
@@ -60,7 +58,7 @@ Subscription subscription = values.subscribe(
6058
);
6159
```
6260

63-
The above code will print nothing. Note that this doesn't mean that the program is blocking. In fact, it will terminate immediately.
61+
The [code above](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java) will print nothing. Note that this doesn't mean that the program is blocking. In fact, it will terminate immediately.
6462

6563
### Observable.error
6664

@@ -74,8 +72,7 @@ Subscription subscription = values.subscribe(
7472
() -> System.out.println("Completed")
7573
);
7674
```
77-
78-
Output
75+
[Output](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java)
7976
```
8077
Error: java.lang.Exception: Oops
8178
```
@@ -91,7 +88,7 @@ now.subscribe(System.out::println);
9188
Thread.sleep(1000);
9289
now.subscribe(System.out::println);
9390
```
94-
Output
91+
[Output](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java)
9592
```
9693
1431443908375
9794
1431443908375
@@ -107,7 +104,7 @@ now.subscribe(System.out::println);
107104
Thread.sleep(1000);
108105
now.subscribe(System.out::println);
109106
```
110-
Output
107+
[Output](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java)
111108
```
112109
1431444107854
113110
1431444108858
@@ -134,7 +131,7 @@ Subscription subscription = values.subscribe(
134131
() -> System.out.println("Completed")
135132
);
136133
```
137-
Output
134+
[Output](/tests/java/itrx/chapter2/creating/ObservableFactoriesExample.java)
138135
```
139136
Received: Hello
140137
Completed
@@ -160,7 +157,7 @@ A straight forward and familiar method to any functional programmer. It emits th
160157
Observable<Integer> values = Observable.range(10, 15);
161158
```
162159

163-
The example emits the values from 10 to 24 in sequence.
160+
The [example](/tests/java/itrx/chapter2/creating/FunctionalUnfoldsExample.java) emits the values from 10 to 24 in sequence.
164161

165162
### Observable.interval
166163

@@ -175,8 +172,7 @@ Subscription subscription = values.subscribe(
175172
);
176173
System.in.read();
177174
```
178-
179-
Output
175+
[Output](/tests/java/itrx/chapter2/creating/FunctionalUnfoldsExample.java)
180176
```
181177
Received: 0
182178
Received: 1
@@ -201,7 +197,7 @@ Subscription subscription = values.subscribe(
201197
() -> System.out.println("Completed")
202198
);
203199
```
204-
Output
200+
[Output](/tests/java/itrx/chapter2/creating/FunctionalUnfoldsExample.java)
205201
```
206202
Received: 0
207203
Completed
@@ -217,7 +213,7 @@ Subscription subscription = values.subscribe(
217213
() -> System.out.println("Completed")
218214
);
219215
```
220-
output
216+
[Output](/tests/java/itrx/chapter2/creating/FunctionalUnfoldsExample.java)
221217
```
222218
Received: 0
223219
Received: 1
@@ -267,8 +263,7 @@ Subscription subscription = values.subscribe(
267263
() -> System.out.println("Completed")
268264
);
269265
```
270-
271-
Output
266+
[Output](/tests/java/itrx/chapter2/creating/FromExample.java)
272267
```
273268
Received: 21
274269
Completed
@@ -293,8 +288,7 @@ Subscription subscription = values.subscribe(
293288
() -> System.out.println("Completed")
294289
);
295290
```
296-
297-
Output
291+
[Output](/tests/java/itrx/chapter2/creating/FromExample.java)
298292
```
299293
Received: 1
300294
Received: 2

0 commit comments

Comments
 (0)