xxl.mathematica.list.Extract Maven / Gradle / Ivy
package xxl.mathematica.list;
import java.util.List;
/**
* 提取
*/
public class Extract {
/**
* 提取 list 在索引表处的值
*
* @param list
* @param indexList
* @param
* @return
*/
public static List extract(List list, List indexList) {
return io.vavr.collection.List.ofAll(indexList)
.map(list::get)
.asJava();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy