Files
pl@gohorb.ba-horb.de a0e59eebe8
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 1m35s
new file: AddEle.jav
new file:   Fac.jav
	new file:   Faculty.jav
2025-09-24 13:53:55 +02:00

20 lines
611 B
Java

import java.lang.String;
import java.lang.Object;
import java.lang.System;
import java.io.PrintStream;
import java.lang.Character;
public class Swap{
<ZDP, ZEA, ZDO, YZP, ZCY, ZDZ> Fun1$$<ZCY, Fun1$$<ZDZ, ZEA>> swap(f){
return x->y->f.apply(y).apply(x);
}
Fun1$$<String, Fun1$$<String, Fun1$$<String, String>>> swap(f){
return x -> y -> z -> f.apply(z).apply(x).apply(y);
}
public static main (y) {
var func = x -> y -> z -> x + y + z;
var res = new Swap().swap(func).apply("A").apply("B").apply("C");
System.out.println(res);}
}