forked from JavaTX/JavaCompilerCore
8a43839c28
modified: ../../src/de/dhbwstuttgart/typeinference/unify/RuleSet.java modified: ../../src/de/dhbwstuttgart/typeinference/unify/model/UnifyPair.java Gleichungen a <.? b werden durch a =. b ersetzt und subst angewandt. deleted: ../../test/bytecode/VectorAddTest.java modified: ../../test/bytecode/javFiles/Matrix.jav modified: ../../test/bytecode/javFiles/Sorting.jav
24 lines
331 B
Java
24 lines
331 B
Java
import java.util.List;
|
|
import java.util.ArrayList;
|
|
import java.lang.String;
|
|
|
|
class Sorting{
|
|
merge(a, b){
|
|
a.addAll(b);
|
|
return a;
|
|
}
|
|
/*
|
|
sort(in){
|
|
var firstHalf = in;
|
|
var secondHalf = in;
|
|
return merge(sort(firstHalf), sort(secondHalf));
|
|
}
|
|
*/
|
|
/*
|
|
|
|
void sort(ArrayList<String> a){
|
|
a = merge(a,a);
|
|
}
|
|
*/
|
|
}
|