xyzwps / dollar

$ is a set of lodash-like, lazy and powerful java collection utils.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xyzwps-dollar

A lodash-like, lazy and powerful java collection utils under MIT license.

For example:

import static com.xyzwps.lib.dollar.Dollar.*;

...

assertIterableEquals(
    $.list(28, 24, 20, 16),
    $.just(2, 3, 4, 5, 6)
        .map(i -> i * 2)
        .flatMap(i -> $.just(i, i + 2))
        .orderBy(Function.identity(), Direction.DESC)
        .filter(i -> i > 6)
        .map(i -> i * 2)
        .unique()
        .value()
);

About

$ is a set of lodash-like, lazy and powerful java collection utils.

License:MIT License


Languages

Language:Java 97.9%Language:Kotlin 2.1%