static L uniquifyInPlace(L l) { var l2 = uniquify(l); if (l(l2) < l(l)) replaceList(l, l2); ret l; }