net.sf.jga.fn
public abstract class AbstractUnaryFunctor<T,R> extends Object implements UnaryFunctor<T,R>
Method Summary | |
---|---|
void | accept(Visitor v)
No-op implementation of Visitable interface. |
<F> UnaryFunctor<F,R> | compose(UnaryFunctor<F,T> f)
FactoryMethod that creates a UnaryFunctor that passes its argument to
the given functor, and uses the result as the argument to this
function. |
<F1,F2> BinaryFunctor<F1,F2,R> | compose(BinaryFunctor<F1,F2,T> f)
FactoryMethod that creates a BinaryFunctor that passes its arguments to
the given functor, and uses the result as the argument to this
function. |
fnthis(f(x)))
fnthis(f(x,y)))