A
- the first argument typeB
- the result typepublic final class Into1<A,B> extends Object implements Fn2<Fn1<? super A,? extends B>,SingletonHList<A>,B>
Fn1
<A, B>
and a SingletonHList
<A>
, pop the head and
apply it to the function, returning the result.Constructor and Description |
---|
Into1() |
Modifier and Type | Method and Description |
---|---|
B |
checkedApply(Fn1<? super A,? extends B> fn,
SingletonHList<A> singletonHList) |
static <A,B> Into1<A,B> |
into1() |
static <A,B> Fn1<SingletonHList<A>,B> |
into1(Fn1<? super A,? extends B> fn) |
static <A,B> B |
into1(Fn1<? super A,? extends B> fn,
SingletonHList<A> singletonHList) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, flip, fn2, fromBiFunction, toBiFunction, uncurry, widen
public B checkedApply(Fn1<? super A,? extends B> fn, SingletonHList<A> singletonHList)
checkedApply
in interface Fn2<Fn1<? super A,? extends B>,SingletonHList<A>,B>
public static <A,B> Into1<A,B> into1()
public static <A,B> Fn1<SingletonHList<A>,B> into1(Fn1<? super A,? extends B> fn)
public static <A,B> B into1(Fn1<? super A,? extends B> fn, SingletonHList<A> singletonHList)