public abstract class F2W<A,B,C> extends java.lang.Object implements F2<A,B,C>
Modifier and Type | Class and Description |
---|---|
static class |
F2W.F2WFunc<A,B,C> |
Constructor and Description |
---|
F2W() |
Modifier and Type | Method and Description |
---|---|
F2W<Array<A>,Array<B>,Array<C>> |
arrayM()
Promotes this function to a function on Arrays.
|
<X,Y> F2W<X,Y,C> |
contramap(F<X,A> f,
F<Y,B> g) |
<Z> F2W<Z,B,C> |
contramapFirst(F<Z,A> f) |
<Z> F2W<A,Z,C> |
contramapSecond(F<Z,B> f) |
F1W<A,F<B,C>> |
curry()
Curries this wrapped function to a wrapped function of arity-1 that returns another wrapped function.
|
F1W<B,C> |
f(A a)
Partial application.
|
F2W<B,A,C> |
flip()
Flips the arguments of this function.
|
F2W<java.lang.Iterable<A>,java.lang.Iterable<B>,IterableW<C>> |
iterableM()
Promotes this function to a function on Iterables.
|
static <A,B,C> F2W<A,B,C> |
lift(F2<A,B,C> f)
Lifts the function into the fully featured function wrapper
|
F2W<List<A>,List<B>,List<C>> |
listM()
Promotes this function to a function on Lists.
|
<Z> F2W<A,B,Z> |
map(F<C,Z> f) |
F2W<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>> |
nelM()
Promotes this function to a function on non-empty lists.
|
F2W<Option<A>,Option<B>,Option<C>> |
optionM()
Promotes this function to a function on Options.
|
F2W<Promise<A>,Promise<B>,Promise<C>> |
promiseM()
Promotes this function to a function on Promises.
|
F2W<Set<A>,Set<B>,Set<C>> |
setM(Ord<C> o)
Promotes this function to a function on Sets.
|
F2W<Stream<A>,Stream<B>,Stream<C>> |
streamM()
Promotes this function to a function on Streams.
|
F2W<Tree<A>,Tree<B>,Tree<C>> |
treeM()
Promotes this function to a function on Trees.
|
F1W<P2<A,B>,C> |
tuple()
Uncurries this function to a function on tuples.
|
F2W<Array<A>,Array<B>,Array<C>> |
zipArrayM()
Promotes this function to zip two arrays, applying the function lock-step over both Arrays.
|
F2W<java.lang.Iterable<A>,java.lang.Iterable<B>,java.lang.Iterable<C>> |
zipIterableM()
Promotes this function to zip two iterables, applying the function lock-step over both iterables.
|
F2W<List<A>,List<B>,List<C>> |
zipListM()
Promotes this function to zip two lists, applying the function lock-step over both lists.
|
F2W<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>> |
zipNelM()
Promotes this function to zip two non-empty lists, applying the function lock-step over both lists.
|
F2W<Set<A>,Set<B>,Set<C>> |
zipSetM(Ord<C> o)
Promotes this function to zip two sets, applying the function lock-step over both sets.
|
F2W<Stream<A>,Stream<B>,Stream<C>> |
zipStreamM()
Promotes this function to zip two streams, applying the function lock-step over both streams.
|
F2W<Tree<A>,Tree<B>,Tree<C>> |
zipTreeM()
Promotes this function to zip two trees, applying the function lock-step over both trees.
|
F2W<TreeZipper<A>,TreeZipper<B>,TreeZipper<C>> |
zipTreeZipperM()
Promotes this function to zip two TreeZippers, applying the function lock-step over both zippers in all directions.
|
F2W<Zipper<A>,Zipper<B>,Zipper<C>> |
zipZipperM()
Promotes this function to zip two zippers, applying the function lock-step over both zippers in both directions.
|
public F1W<B,C> f(A a)
a
- The A
to which to apply this function.public F1W<A,F<B,C>> curry()
public F2W<B,A,C> flip()
public F1W<P2<A,B>,C> tuple()
public F2W<Array<A>,Array<B>,Array<C>> arrayM()
public F2W<Promise<A>,Promise<B>,Promise<C>> promiseM()
public F2W<java.lang.Iterable<A>,java.lang.Iterable<B>,IterableW<C>> iterableM()
public F2W<List<A>,List<B>,List<C>> listM()
public F2W<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>> nelM()
public F2W<Option<A>,Option<B>,Option<C>> optionM()
public F2W<Set<A>,Set<B>,Set<C>> setM(Ord<C> o)
o
- An ordering for the result of the promoted function.public F2W<Stream<A>,Stream<B>,Stream<C>> streamM()
public F2W<Tree<A>,Tree<B>,Tree<C>> treeM()
public F2W<Array<A>,Array<B>,Array<C>> zipArrayM()
public F2W<java.lang.Iterable<A>,java.lang.Iterable<B>,java.lang.Iterable<C>> zipIterableM()
public F2W<List<A>,List<B>,List<C>> zipListM()
public F2W<Stream<A>,Stream<B>,Stream<C>> zipStreamM()
public F2W<NonEmptyList<A>,NonEmptyList<B>,NonEmptyList<C>> zipNelM()
public F2W<Set<A>,Set<B>,Set<C>> zipSetM(Ord<C> o)
o
- An ordering for the resulting set.public F2W<Tree<A>,Tree<B>,Tree<C>> zipTreeM()
public F2W<Zipper<A>,Zipper<B>,Zipper<C>> zipZipperM()
public F2W<TreeZipper<A>,TreeZipper<B>,TreeZipper<C>> zipTreeZipperM()