RosettaCodeData/Task/Order-two-numerical-lists/AutoHotkey/order-two-numerical-lists.ahk
2023-07-01 13:44:08 -04:00

7 lines
133 B
AutoHotkey

List1 := [1,2,1,3,2]
List2 := [1,2,0,4,4,0,0,0]
MsgBox % order(List1, List2)
order(L1, L2){
return L1.MaxIndex() < L2.MaxIndex()
}