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