![JAR search and dependency download from the Maven repository](/logo.png)
com.github.krukow.clj_ds.PersistentList Maven / Gradle / Ivy
package com.github.krukow.clj_ds;
import java.util.List;
/**
* A persistent linked list. It implements the {@link List} interface without
* the optional destructive operations.
*/
public interface PersistentList extends PersistentStack, List {
PersistentList zero();
/**
* @return A new {@link PersistentList} consisting of the value val followed
* by the element of the current {@link PersistentList}.
*/
PersistentList plus(E val);
/**
* @return A new {@link PersistentList} consisting of the elements of the current
* {@link PersistentList} without its first element.
*/
PersistentList minus();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy