#testmode:repl # Simple lists 1, 2, 3 (1, 2, 3) 1, 2, 3, (1, 2, 3,) (42, "Hello", 23.5, true, false) # Simple lists by constructor , (,) list() list(true) list((1,2,3)) list("Tokay") # Standard get/set item test l = 1, 2, 3 #( # l[0] # 1 # l[1] = -2 # void # ++l[2] # 4 # l[3] # void # l[2] # 4 #) l[0] l[1] = -2 ++l[2], l[3], l[2] l # Extended get/set item test l = (1, 2, 3) #( # l.get_item(0, 1337) # 1 # l.get_item(3, 1337) # 1337 # l.set_item(0) # 1 # l[1] = void # void # l # (2, ) #) l.get_item(0, 1337) l.get_item(3, 1337) l.set_item(0) l[1] = void l # fixme: Missing tests for comparison, see dict.tok #--- #(1, 2, 3) #(1, 2, 3) #(1, 2, 3) #(1, 2, 3) #(42, "Hello", 23.5, true, false) #(, ) #(, ) #(, ) #(true, ) #(1, 2, 3) #("Tokay", ) #(1, (4, 4)) #(1, -2, 4) #(1, 1337, 1) #(2, )