| Package | Description |
|---|---|
| org.organicdesign.fp.collections |
Type-safe versions of immutable collections (mostly from Clojure), plus unmodifiable and
immutable collection interfaces that fit these collections into the java.util interfaces.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ImList<E>
Immutable copy-on-write list
|
interface |
MutableList<E>
|
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentVector<E>
This started out as Rich Hickey's PersistentVector class from Clojure in late 2014.
|
static class |
PersistentVector.MutableVector<F> |
class |
RrbTree<E>
An RRB Tree is an immutable List (like Clojure's PersistentVector) that also supports random inserts, deletes,
and can be split and joined back together in logarithmic time.
|
static class |
RrbTree.ImRrbt<E>
Immutable version of an
RrbTree. |
static class |
RrbTree.MutableRrbt<E>
Mutable version of an
RrbTree. |
| Modifier and Type | Method and Description |
|---|---|
BaseList<E> |
BaseList.append(E e)
Adds one item to the end of the ImList.
|
BaseList<E> |
BaseList.concat(Iterable<? extends E> es)
Efficiently adds items to the end of this ImList.
|
BaseList<E> |
BaseList.replace(int idx,
E e)
Replace the item at the given index.
|
BaseList<E> |
BaseList.reverse()
Returns a reversed copy of this list.
|
Copyright © 2019. All rights reserved.