X
- Type of source itempublic final class IterableAsBoolean<X> extends Object implements Scalar<Boolean>
You can use this class, for example, in order to iterate through a collection of items:
new IterableAsBoolean<>( Arrays.asList("hello", "world"), i -> System.out.println(i) ).asValue();
There is no thread-safety guarantee.
IterableAsBooleans
Copyright © 2017 Cactoos. All rights reserved.