![JAR search and dependency download from the Maven repository](/logo.png)
com.iodesystems.fn.aspects.Generators Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fn Show documentation
Show all versions of fn Show documentation
Fn is a lazy Java Library that helps utilize some rudimentary functional concepts with more nounular objects
package com.iodesystems.fn.aspects;
import com.iodesystems.fn.data.From;
import com.iodesystems.fn.data.Generator;
public class Generators {
public static Generator of(T initial, From next) {
return new Generator() {
T current = initial;
@Override
public T next() {
T tmp = current;
current = next.from(current);
return tmp;
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy