forked from JavaTX/JavaCompilerCore
modified: resources/AllgemeinTest/Iteration.jav
This commit is contained in:
parent
3c86eecf8b
commit
e13baa8acb
@ -1,4 +1,4 @@
|
||||
/*
|
||||
|
||||
class Pair<T, U> {
|
||||
T x;
|
||||
U y;
|
||||
@ -17,20 +17,21 @@ class Pair<T, U> {
|
||||
return y;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
public class Iteration {
|
||||
m1(x, y) {
|
||||
var help;
|
||||
help = m2(x, y);
|
||||
var y2 = help.snd();
|
||||
return new Pair<>(y2,x);
|
||||
return new Pair<>(x,y2);
|
||||
|
||||
}
|
||||
|
||||
m2(x,y) {
|
||||
var help = m1(x, y);
|
||||
var x2 = help.fst();
|
||||
return new Pair<>(y, x2);
|
||||
return new Pair<>(x2, y);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user