class CollectionFunctions {

    public static <T> List<T> removeElement(List<T> list, int index) {
        List<T> copy = new ArrayList<>(list);
        copy.remove(index);
        return copy;
    }

    private  CollectionFunctions();

}