07-20-2018, 04:13 PM
Macro Macro6
or
Macro Macro7
out
str s =
;221 41
;51 122
;11 10
ARRAY(str) arr arr2 t
int i nt
nt=tok(s t -1 " []")
arr.create(nt/2)
arr2.create(nt/2)
for i 0 nt
,if(i&1) t[i].swap(arr2[i/2]); else t[i].swap(arr[i/2])
out "arr:"
out arr
out "arr2:"
out arr2
or
Macro Macro7