Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Const functor cannot map to a generic type R, it can only mapy to a constant T
- public interface ConstFunctor<T> {
- T value();
- default Function<Functor<T>, Functor<T>> lift(final Function<T, T> function) {
- return input -> value();
- }
- }
Add Comment
Please, Sign In to add comment