A Java iterator and range library
Groovy Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
mango2.iml

README.md

Mango2

Mango2 is a Java iterator and range library.

import jezuk.mango.Mango;

Predicate<String> lengthOf15 = new Predicate<String>() {
  boolean test(String s) { return s.length() >= 15; }q
};

List<String> string = get_a_bunch_of_strings();
List<String> long_strings = Mango.from(strings).where(lengthOf15).toList();

Mango2 is range-based version of my earlier iterator library and was inspired by talks and articles by Steve Love and Andrei Alexandrescu. It is now largely obsoleted by Java 8 Streams.