DO-NOT-MERGE: this needs some repairs first

This commit is contained in:
Jonathan Shook
2023-05-30 23:14:29 -05:00
committed by jeffbanks
parent 9518b622bf
commit fa0afdd388
30 changed files with 314 additions and 203 deletions

View File

@@ -30,5 +30,6 @@ public enum Category {
general,
objects,
periodic,
experimental
experimental,
HOF
}

View File

@@ -55,6 +55,10 @@ import java.util.function.*;
*/
public class NBFunctionConverter {
public static LongToIntFunction adapt(LongFunction<Float> f, Float i1, LongToIntFunction i2) {
return v -> f.apply(v).intValue();
}
public static LongFunction<Object> adapt(DoubleToIntFunction f, LongFunction<Integer> i1, Object i2) {
return f::applyAsInt;
}