java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn2.Into<A,B,C>
Type Parameters:
A - the first argument type
B - the second argument type
C - the result type
All Implemented Interfaces:
Fn1<Fn2<? super A,? super B,? extends C>,Fn1<Map.Entry<A,B>,C>>, Fn2<Fn2<? super A,? super B,? extends C>,Map.Entry<A,B>,C>, Applicative<Fn1<Map.Entry<A,B>,C>,Fn1<Fn2<? super A,? super B,? extends C>,?>>, Cartesian<Fn2<? super A,? super B,? extends C>,Fn1<Map.Entry<A,B>,C>,Fn1<?,?>>, Cocartesian<Fn2<? super A,? super B,? extends C>,Fn1<Map.Entry<A,B>,C>,Fn1<?,?>>, Contravariant<Fn2<? super A,? super B,? extends C>,Profunctor<?,Fn1<Map.Entry<A,B>,C>,Fn1<?,?>>>, Functor<Fn1<Map.Entry<A,B>,C>,Fn1<Fn2<? super A,? super B,? extends C>,?>>, Profunctor<Fn2<? super A,? super B,? extends C>,Fn1<Map.Entry<A,B>,C>,Fn1<?,?>>, Monad<Fn1<Map.Entry<A,B>,C>,Fn1<Fn2<? super A,? super B,? extends C>,?>>, MonadReader<Fn2<? super A,? super B,? extends C>,Fn1<Map.Entry<A,B>,C>,Fn1<Fn2<? super A,? super B,? extends C>,?>>, MonadRec<Fn1<Map.Entry<A,B>,C>,Fn1<Fn2<? super A,? super B,? extends C>,?>>, MonadWriter<Fn2<? super A,? super B,? extends C>,Fn1<Map.Entry<A,B>,C>,Fn1<Fn2<? super A,? super B,? extends C>,?>>

public final class Into<A,B,C> extends Object implements Fn2<Fn2<? super A,? super B,? extends C>,Map.Entry<A,B>,C>
Given an Fn2<A, B, C> and a Map.Entry<A, B>, destructure the entry and apply the key and value as arguments to the function, returning the result.
  • Field Details

    • INSTANCE

      private static final Into<?,?,?> INSTANCE
  • Constructor Details

    • Into

      private Into()
  • Method Details

    • checkedApply

      public C checkedApply(Fn2<? super A,? super B,? extends C> fn, Map.Entry<A,B> entry)
      Specified by:
      checkedApply in interface Fn2<A,B,C>
    • into

      public static <A, B, C> Into<A,B,C> into()
    • into

      public static <A, B, C> Fn1<Map.Entry<A,B>,C> into(Fn2<? super A,? super B,? extends C> fn)
    • into

      public static <A, B, C> C into(Fn2<? super A,? super B,? extends C> fn, Map.Entry<A,B> entry)