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

xxl.mathematica.list.Prepend Maven / Gradle / Ivy

package xxl.mathematica.list;

import java.util.List;

/**
 * 加在前面
 */

public class Prepend {
    /**
     * 在 list 前加 elem.
     *
     * @param list
     * @param t
     * @param 
     * @return
     */
    public static  List prepend(List list, T t) {
        return io.vavr.collection.List.ofAll(list)
                .prepend(t)
                .asJava();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy