Skip to content

Commit

Permalink
Update Tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Jan 9, 2025
1 parent 7f31e80 commit fab7aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ If you want to exclude `null` from the result,
you can use the methods `mapNotNull` and `mapIndexedNotNull` to map each element to either zero or one:

```java
Seq<String> _ = Seq.of(1, 2, 3).mapNotNull(value -> value == 2 ? null : String.valueOf(value); // ===> ["1", "3"]
Seq<String> _ = Seq.of(1, 2, 3).mapNotNull(value -> value == 2 ? null : String.valueOf(value)); // ===> ["1", "3"]
Seq<String> _ = Seq.of(1, 2, 3).mapIndexedNotNull(
(index, value) -> index == 0 ? null : String.valueOf(value)); // ["2", "3"]
```
Expand Down

0 comments on commit fab7aa9

Please sign in to comment.