Order two numerical lists: Difference between revisions

(added sml)
Line 80:
}
public static <T extends Comparable<? super T>> boolean ordered(List<DoubleT> first, List<DoubleT> second){
int i = 0;
for(; i < first.size() && i < second.size();i++){
if(int cmp = first.get(i) == .compareTo(second.get(i)) continue;
if(first.get(i)cmp <== second.get(i0)) return truecontinue;
if(cmp < 0) return true;
return false;
}
Line 100 ⟶ 101:
}
}</lang>
 
=={{header|OCaml}}==
 
Anonymous user