
com.github.dakusui.thincrest.metamor.internals.InternalUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thincrest-pcond Show documentation
Show all versions of thincrest-pcond Show documentation
Yet another assertion library powered by "pcond"
The newest version!
package com.github.dakusui.thincrest.metamor.internals;
import com.github.dakusui.thincrest.metamor.Dataset;
import com.github.dakusui.thincrest.metamor.IoContext;
import java.util.function.Function;
import java.util.function.IntFunction;
import static com.github.dakusui.thincrest.metamor.IoContext.Utils.toContextEndomorphicFunction;
public enum InternalUtils {
;
public static Function, Dataset> createObservableProcessingPipeline(String contextName, Function, Function> mapper, int numItems, IntFunction variableNameFormatter, String outputContextName) {
return IoContext.Utils.toContextFunction(contextName, outputContextName)
.andThen(toContextEndomorphicFunction(mapper, numItems, variableNameFormatter))
.andThen(IoContext.Utils.toCloseFunction(contextName))
.andThen(IoContext.Utils.toOutputExtractorFunction(contextName));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy