All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xxl.mathematica.functional.Apply Maven / Gradle / Ivy

package xxl.mathematica.functional;


import java.util.List;
import java.util.function.Function;

/**
 * 应用
 */

public class Apply {
    /**
     * 应用函数到列表中
     *
     * @param function
     * @param list
     * @param 
     * @param 
     * @return
     */
    public static  R apply(Function, R> function, List list) {
        return io.vavr.collection.List.of(list)
                .map(function)
                .get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy