Mercurial > hg > Members > tatsuki > functionaljava-master > core
comparison src/main/java/fj/F8Functions.java @ 0:fe80c1edf1be
add getLoop
author | tatsuki |
---|---|
date | Fri, 20 Mar 2015 21:04:03 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fe80c1edf1be |
---|---|
1 package fj; | |
2 | |
3 import fj.data.Validation; | |
4 import fj.function.Try8; | |
5 | |
6 /** | |
7 * Created by MarkPerry on 6/04/2014. | |
8 */ | |
9 public class F8Functions { | |
10 | |
11 /** | |
12 * Partial application. | |
13 * | |
14 * @param a The <code>A</code> to which to apply this function. | |
15 * @return The function partially applied to the given argument. | |
16 */ | |
17 static public <A, B, C, D, E, F$, G, H, I> F7<B, C, D, E, F$, G, H, I> f(final F8<A, B, C, D, E, F$, G, H, I> func, final A a) { | |
18 return (b, c, d, e, f, g, h) -> func.f(a, b, c, d, e, f, g, h); | |
19 } | |
20 | |
21 } |