core: Implement len() on tuples. #489

Merged
sb10q merged 4 commits from feature/tuple-len into master 2024-08-13 15:02:59 +08:00
1 changed files with 8 additions and 1 deletions
Showing only changes of commit 053796fb35 - Show all commits

View File

@ -25,5 +25,12 @@ def run() -> int32:
output_int32(tl[0][0])
output_int32(tl[0][1])
output_int32(tl[1])
output_int32(len(()))
output_int32(len((1,)))
output_int32(len((1, 2)))
output_int32(len((1, 2, 3)))
output_int32(len((1, 2, 3, 4)))
output_int32(len((1, 2, 3, 4, 5)))
return 0