Modifier and Type | Method and Description |
---|---|
static <A> Prism<List<A>,P2<A,List<A>>> |
cons()
Cons prism
|
static <A> Optional<List<A>,A> |
head()
Optional targeted on Cons head.
|
static <A> Prism<List<A>,Unit> |
nil()
Nil prism
|
static <A,B> PTraversal<List<A>,List<B>,A,B> |
pTraversal()
Polymorphic traversal
|
static <A> Optional<List<A>,List<A>> |
tail()
Optional targeted on Cons tail.
|
static <A> Traversal<List<A>,A> |
traversal()
Monomorphic traversal
|
public static <A,B> PTraversal<List<A>,List<B>,A,B> pTraversal()