public final class Sequence<T> extends java.lang.Object implements Generatable<T>
Generatable. It generates a sequence by passing the previous result (or initial value) into a given Function.| Constructor and Description |
|---|
Sequence(T first,
Function<T,T> function) |
| Modifier and Type | Method and Description |
|---|---|
Generator<T> |
generator() |