Skip to content

Commit

Permalink
Update Tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Jan 8, 2025
1 parent 1236078 commit 2edda30
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

Table of contents:

* [Use Kala Collections](#use-kala-collections) (WIP)
* Use Kala Collections for primitive types (WIP)
* [Use Kala Collection](#use-kala-collection) (WIP)
* Use Kala Collection for primitive types (WIP)
* [Use reverse indexes in Kala Common](#use-reverse-indexes-in-kala-common)
* ... (WIP)

## Use Kala Collections
## Use Kala Collection

### Overview

Kala Collections provides the following common collection interfaces:
Kala Collection provides the following common collection interfaces:

* `Traversable`: An Iterable with more functionality.
* `Collection`: Common interface implemented by collections.
Expand Down Expand Up @@ -142,7 +142,13 @@ More usage of `CollectionFactory` will be introduced in later chapters.

### `Traversable`

`Traversable`
Interface `Traversable` inherits from `java.lang.Iterable`.
Based on `Iterable`, `Traversable` provides a lot of useful methods.

#### `spliterator()`, `stream()` and `parallelStream()`

`Traversable` provides `spliterator()`, `stream()` and `parallelStream()` similar to [`java.util.Collection`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Collection.html).
Therefore, all collections in Kala Collection can work well with Java Stream.

(WIP)

Expand Down

0 comments on commit 2edda30

Please sign in to comment.