kactoos-jvm / nnl.rocks.kactoos.scalar / And
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.
iterable
- The encapsulated iterable
See Also
Since 0.3
Name | Summary |
---|---|
<init> | And(vararg src: KScalar < Boolean >) And(vararg src: Scalar < Boolean >) And(iterable: Iterable < KScalar < Boolean >>) Logical conjunction. |
Name | Summary |
---|---|
invoke | fun invoke(): Boolean Get value of this Scalar |
Name | Summary |
---|---|
invoke | operator fun <X : Any > invoke(func: Func < X , Boolean >, vararg src: X ): And operator fun <X : Any > invoke(func: Func < X , Boolean >, src: Iterable < X >): And operator fun <X : Any > invoke(proc: Proc < X >, vararg src: X ): And operator fun <X : Any > invoke(proc: Proc < X >, src: Iterable < X >): And |