Uses of Interface
cloud.opencode.base.collections.immutable.PersistentList
Packages that use PersistentList
-
Uses of PersistentList in cloud.opencode.base.collections.immutable
Classes in cloud.opencode.base.collections.immutable that implement PersistentListModifier and TypeClassDescriptionstatic final recordCons - A non-empty persistent list node (head + tail).static final recordNil - The empty persistent list.Methods in cloud.opencode.base.collections.immutable that return PersistentListModifier and TypeMethodDescriptionAppend an element to the end of this list (O(n)).static <E> PersistentList<E> PersistentList.empty()Return an empty persistent list.Filter elements by a predicate and return a new list (O(n)).static <E> PersistentList<E> Create a persistent list from an iterable.<R> PersistentList<R> <R> PersistentList<R> Apply a function to each element and return a new list (O(n)).<R> PersistentList<R> static <E> PersistentList<E> PersistentList.of(E... elements) Create a persistent list from the given elements.Prepend an element to the front of this list (O(1)).PersistentList.Cons.reversed()PersistentList.Nil.reversed()PersistentList.reversed()Return a reversed copy of this list (O(n)).PersistentList.Cons.tail()Returns the value of thetailrecord component.PersistentList.Nil.tail()PersistentList.tail()Return the tail of this list (all elements except the first) (O(1)).Constructors in cloud.opencode.base.collections.immutable with parameters of type PersistentListModifierConstructorDescriptionCons(E head, PersistentList<E> tail, int size) Canonical constructor with validation.