Implement compare algorithm. Fix #50

This commit is contained in:
2018-09-11 10:05:15 +02:00
parent 7f080831c5
commit b6d1766d58
3 changed files with 135 additions and 10 deletions

View File

@ -14,7 +14,6 @@
*/
module tanya.math.mp;
import std.algorithm.comparison : cmp;
import std.algorithm.mutation : fill, reverse;
import std.range;
import tanya.algorithm.comparison;
@ -629,7 +628,7 @@ struct Integer
}
return this.rep[0 .. this.size]
.retro
.cmp(that.rep[0 .. that.size].retro);
.compare(that.rep[0 .. that.size].retro);
}
/**