Skip to content

Commit

Permalink
more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 24, 2017
1 parent e110485 commit 482bcd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ List<String> sorted = new SortedList<>(
);
```

To count elements in an iterable:

```java
int total = new LengthOfIterable(
new ArrayAsIterable<>("how", "are", "you")
).asValue();
```

## How to contribute?

Just fork the repo and send us a pull request.
Expand Down

0 comments on commit 482bcd0

Please sign in to comment.