moved munging while and for into obj_lower

This commit is contained in:
Nathan Braswell
2016-06-25 16:02:53 -07:00
parent 9de3e07715
commit dd8fbc0489
6 changed files with 72 additions and 36 deletions

View File

@@ -225,7 +225,7 @@ obj vector<T> (Object, Serializable) {
size++;
}
fun add(dataIn: ref T, index: int) {
fun add(index: int, dataIn: ref T) {
add(last())
for (var i = size-2; i > index; i--;) {
data[i] = data[i-1]