Package io.vavr
Class API.For1<T1>
- java.lang.Object
-
- io.vavr.API.For1<T1>
-
- Enclosing class:
- API
public static class API.For1<T1> extends java.lang.Object
For-comprehension with one Iterable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T1>
yield()
A shortcut foryield(Function.identity())
.<R> Iterator<R>
yield(java.util.function.Function<? super T1,? extends R> f)
Yields a result for elements of the cross product of the underlying Iterable.
-
-
-
Field Detail
-
ts1
private final java.lang.Iterable<T1> ts1
-
-
Constructor Detail
-
For1
private For1(java.lang.Iterable<T1> ts1)
-
-
Method Detail
-
yield
public <R> Iterator<R> yield(java.util.function.Function<? super T1,? extends R> f)
Yields a result for elements of the cross product of the underlying Iterable.- Type Parameters:
R
- type of the resultingIterator
elements- Parameters:
f
- a function that maps an element of the cross product to a result- Returns:
- an
Iterator
of mapped results
-
-