Skip to content
This repository was archived by the owner on Oct 4, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Inspection v1, Reducing a sequence v2
  • Loading branch information
FARsh committed Nov 10, 2016
commit f022c9abd2dd2718b16374f24e1e2400d4f6dd17
34 changes: 17 additions & 17 deletions Part 2 - Sequence Basics/2. Reducing a sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Subscription oddNumbers = values
);
```

[Output](/tests/java/itrx/chapter2/reducing/FilterExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/FilterExample.java)
```
0
2
Expand All @@ -44,7 +44,7 @@ Subscription oddNumbers = values
Completed
```

## distinct and distinctUntilChanged
## distinct и distinctUntilChanged

`distinct` - отбрасывает элементы которые уже встречались в последовательности.

Expand All @@ -68,7 +68,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
```
1
2
Expand Down Expand Up @@ -104,7 +104,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
```
First
Second
Expand Down Expand Up @@ -143,7 +143,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
```
1
2
Expand Down Expand Up @@ -172,7 +172,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/DistinctExample.java)
```
First
Second
Expand All @@ -196,7 +196,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/IgnoreExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/IgnoreExample.java)
```
Completed
```
Expand Down Expand Up @@ -226,7 +226,7 @@ Subscription first2 = values
);
```

[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
0
1
Expand All @@ -251,7 +251,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
1
Completed
Expand All @@ -276,7 +276,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
2
3
Expand All @@ -302,7 +302,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
0
1
Expand All @@ -328,7 +328,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
0
1
Expand All @@ -348,7 +348,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
2
3
Expand All @@ -371,7 +371,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
0
1
Expand Down Expand Up @@ -405,7 +405,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
0
1
Expand All @@ -427,7 +427,7 @@ Subscription subscription = values
() -> System.out.println("Completed")
);
```
[Output](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
[Вывод](/tests/java/itrx/chapter2/reducing/TakeSkipExample.java)
```
2
3
Expand All @@ -438,6 +438,6 @@ Subscription subscription = values

#### Продолжить

| Previous | Next |
| Предыдущий | Следующий |
| --- | --- |
| [Creating a sequence](/Part 2 - Sequence Basics/1. Creating a sequence.md) | [Inspection](/Part 2 - Sequence Basics/3. Inspection.md) |
Loading