diff src/main/java/fj/F7Functions.java @ 0:fe80c1edf1be

add getLoop
author tatsuki
date Fri, 20 Mar 2015 21:04:03 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/fj/F7Functions.java	Fri Mar 20 21:04:03 2015 +0900
@@ -0,0 +1,22 @@
+package fj;
+
+import fj.data.Validation;
+import fj.function.Try7;
+
+/**
+ * Created by MarkPerry on 6/04/2014.
+ */
+public class F7Functions {
+
+	/**
+	 * Partial application.
+	 *
+	 * @param a The <code>A</code> to which to apply this function.
+	 * @return The function partially applied to the given argument.
+	 */
+	static public <A, B, C, D, E, F$, G, H> F6<B, C, D, E, F$, G, H> f(final F7<A, B, C, D, E, F$, G, H> func, final A a) {
+		return (b, c, d, e, f, g) -> func.f(a, b, c, d, e, f, g);
+	}
+
+
+}