pocketlang icon indicating copy to clipboard operation
pocketlang copied to clipboard

[Enhancement] add List.resize(n)

Open khchen opened this issue 2 years ago • 0 comments

Add resize method to List class. Example:

l = [1, 2, 3, 4, 5]
print(l)

l.resize(3)
print(l)

l.resize(5)
print(l)

Output:

[1, 2, 3, 4, 5]
[1, 2, 3]
[1, 2, 3, null, null]

khchen avatar Jun 23 '22 05:06 khchen