Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / And / <init>

<init>

And(vararg src: KScalar<Boolean>) And(vararg src: Scalar<Boolean>)And(iterable: Iterable<KScalar<Boolean>>)

Logical conjunction.

This class can be effectively used to iterate through a collection, just like forEach works:

And<String>(
    ProcOf { println(it) },
    IterableOf("Mary", "John", "William", "Napkin")
).value()

There is no thread-safety guarantee.

Parameters

iterable - The encapsulated iterable

See Also

IoCheckedScalar

Since 0.3