Make list re-implemented methods public

This commit is contained in:
2020-11-14 13:56:00 -07:00
parent b3807b0928
commit 5f5782714d

View File

@@ -36,17 +36,17 @@ abstract List<T>(Array<T>) from Array<T> to Array<T> {
return v; return v;
} }
function insert(idx:Int, v:T) { public function insert(idx:Int, v:T) {
this.insert(realIndex(idx), v); this.insert(realIndex(idx), v);
} }
function slice(start:Int, ?end:Int) { public function slice(start:Int, ?end:Int) {
if (end == null) if (end == null)
end = this.length; end = this.length;
return this.slice(realIndex(start), realIndex(end)); return this.slice(realIndex(start), realIndex(end));
} }
function splice(start:Int, len:Int) { public function splice(start:Int, len:Int) {
return this.splice(realIndex(start), len); return this.splice(realIndex(start), len);
} }
} }