Package | Description |
---|---|
org.organicdesign.fp |
A tiny data definition language for Java, in Java.
|
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.
|
org.organicdesign.fp.tuple |
Immutable, type-safe, heterogeneous containers - ML calls these "records."
ML, Haskell, and Scala use tuples - why not Java?
Actually, tuples are *more* important in Java because Java does not have type aliases.
|
Modifier and Type | Method and Description |
---|---|
static <T,U> Tuple2<T,U> |
StaticImports.tup(T t,
U u)
Returns a new Tuple2 of the given items.
|
Modifier and Type | Method and Description |
---|---|
abstract Tuple2<? extends RrbTree<E>,? extends RrbTree<E>> |
RrbTree.split(int splitIndex)
Divides this RRB-Tree such that every index less-than the given index ends up in the left-hand
tree and the indexed item and all subsequent ones end up in the right-hand tree.
|
Tuple2<RrbTree.MutableRrbt<E>,RrbTree.MutableRrbt<E>> |
RrbTree.MutableRrbt.split(int splitIndex)
Divides this RRB-Tree such that every index less-than the given index ends up in the
left-hand tree and the indexed item and all subsequent ones end up in the right-hand tree.
|
Tuple2<RrbTree.ImRrbt<E>,RrbTree.ImRrbt<E>> |
RrbTree.ImRrbt.split(int splitIndex)
Divides this RRB-Tree such that every index less-than the given index ends up in the left-hand
tree and the indexed item and all subsequent ones end up in the right-hand tree.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Tuple2<A,B> |
Tuple2.of(A a,
B b)
Public static factory method
|
static <K,V> Tuple2<K,V> |
Tuple2.of(Map.Entry<K,V> entry)
Map.Entry factory method
|
Copyright © 2017. All rights reserved.