Guest User

Untitled

a guest
Jul 21st, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. //Const functor cannot map to a generic type R, it can only mapy to a constant T
  2. public interface ConstFunctor<T> {
  3. T value();
  4.  
  5. default Function<Functor<T>, Functor<T>> lift(final Function<T, T> function) {
  6. return input -> value();
  7. }
  8. }
Add Comment
Please, Sign In to add comment