I can't find the answer to this anywhere on the forums or the help documentation.
I've tried:
Code: Select all
a.Remove(a.1.5, a.MaxIndex().5)
a.Remove(a.1.5)
a.Remove(a[1, 5], a[a.MaxIndex(), 5])
Code: Select all
a.Remove(a.1.5, a.MaxIndex().5)
a.Remove(a.1.5)
a.Remove(a[1, 5], a[a.MaxIndex(), 5])
Code: Select all
test := [[1,2],[1,2]]
removeColumn(test, 1)
MsgBox % test[1][1] ;shows 2
MsgBox % test[2][2] ;shows "" because there is no element there anymore
ExitApp
;This function modifies the original array!
;@arr
; the Array to modify
;@column
; The column index to remove
removeColumn(arr, column)
{
loop, % arr.maxIndex()
{
arr[A_index].remove(column)
}
return
}
Users browsing this forum: Chunjee, inseption86, jaka1 and 334 guests