Superpermutation minimisation: Difference between revisions

Content deleted Content added
Objeck (talk | contribs)
Objeck (talk | contribs)
Line 641:
};
@super[@pos++] := c;
 
return true;
}
 
function : native : SuperPerm(n : Int) ~ Nil {
@pos := n;
len := FactSum(n);
 
tmp := Char->New[len + 1];
forRuntime->Copy(i :=tmp, 0;, i@super, <0, @super->Size()); i += 1;) {
tmp[i] := @super[i];
};
@super := tmp;