Class API.ForLazy3List<T1,T2,T3>
java.lang.Object
io.vavr.API.ForLazy3List<T1,T2,T3>
- Type Parameters:
T1- the component type of the 1st ListT2- the component type of the 2nd ListT3- the component type of the 3rd List
- Enclosing class:
API
A lazily evaluated
For-comprehension with three Lists.
Constructed via For(...) and evaluated by calling yield(...).
Construction is side-effect free; underlying Lists are traversed
only when yield(...) is invoked.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ts1
-
ts2
-
ts3
-
-
Constructor Details
-
ForLazy3List
-
-
Method Details
-
yield
Produces results by mapping the Cartesian product of all bound values.Evaluation is lazy and delegated to the underlying Lists by composing
flatMapandmapchains.- Type Parameters:
R- the element type of the resultingList- Parameters:
f- a function mapping a tuple of bound values to a result- Returns:
- an
Listcontaining mapped results - Throws:
NullPointerException- iffisnull
-