From 482bcd0e224b296937b88d95504f8289e5e58d2a Mon Sep 17 00:00:00 2001 From: yegor256 Date: Wed, 24 May 2017 11:04:22 +0300 Subject: [PATCH] more doc --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 19e746c297..96d82a9e65 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,14 @@ List 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.