Skip to content

[Enhancement] add List.resize(n)#258

Open
khchen wants to merge 1 commit into
ThakeeNathees:masterfrom
khchen:list_resize
Open

[Enhancement] add List.resize(n)#258
khchen wants to merge 1 commit into
ThakeeNathees:masterfrom
khchen:list_resize

Conversation

@khchen

@khchen khchen commented Jun 23, 2022

Copy link
Copy Markdown

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 khchen changed the title add List.resize(n) [Enhancement] add List.resize(n) Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant