xxl.mathematica.functional.Scan Maven / Gradle / Ivy
package xxl.mathematica.functional;
import java.util.List;
import java.util.function.Consumer;
/**
* 扫描
*/
public class Scan {
/**
* 将函数作用到每个元素
*
* @param f
* @param list
* @param
*/
public static void scan(Consumer f, List list) {
io.vavr.collection.List.ofAll(list)
.forEach(f);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy