Modifier and Type | Method and Description |
---|---|
static <A> Lens.Simple<Iterable<A>,Maybe<A>> |
head()
A lens focusing on the head of a given
Iterable . |
static <A,B> Iso.Simple<Iterable<A>,Iterable<B>> |
mapping(Iso<A,A,B,B> abIso)
An iso focusing on the mapped values of an
Iterable . |
static <A> Lens.Simple<Iterable<A>,Iterable<A>> |
tail()
A lens focusing on the tail of an
Iterable . |
public static <A> Lens.Simple<Iterable<A>,Maybe<A>> head()
Iterable
.
Note that this lens is effectively lawful, though difficult to prove since there is no
useful equality implementation for Iterable
.
A
- the Iterable element typeIterable
public static <A> Lens.Simple<Iterable<A>,Iterable<A>> tail()
Iterable
.A
- the Iterable element typeIterable
public static <A,B> Iso.Simple<Iterable<A>,Iterable<B>> mapping(Iso<A,A,B,B> abIso)
Iterable
.