Skip to content

Instantly share code, notes, and snippets.

@techtangents
Created June 17, 2013 05:09
Show Gist options
  • Save techtangents/5794753 to your computer and use it in GitHub Desktop.
Save techtangents/5794753 to your computer and use it in GitHub Desktop.
/** applyF :: ((a -> b), a) -> b */
public static <A, B> F2<F<A, B>, A, B> applyF() {
return new F2<F<A, B>, A, B>() {
@Override
public B apply(final F<A, B> f, final A a) {
return f.apply(a);
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment