kactoos-jvm / nnl.rocks.kactoos.scalar / AndFunc / <init>
AndFunc(proc:
Proc
<
X
>, vararg src:
X
)
proc
- Proc to map
src
- The iterable
X
- Type of items in the iterableAndFunc(func:
Func
<
X
,
Boolean
>, vararg src:
X
)
func
- Func to map
src
- The iterable
X
- Type of items in the iterableAndFunc(proc:
Proc
<
X
>, src:
Iterable
<
X
>)
src
- The iterable
proc
- Proc to use
X
- Type of items in the iterable
Since 0.24
AndFunc(func:
Func
<
X
,
Boolean
>, src:
Iterable
<
X
>)
src
- The iterable
func
- Func to map
X
- Type of items in the iterable
Since 0.24
AndFunc(iterable:
Iterable
<
KScalar
<
Boolean
>>)
Logical conjunction.
This class can be effectively used to iterate through a collection, just like java.util.stream.Stream.forEach works:
new And(
new IterableOf("Mary", "John", "William", "Napkin"),
name -> System.out.printf("The name: %s\n", name)
).value();
There is no thread-safety guarantee.
iterable
- The iterable
X
- Type argument
See Also
Since 0.8