Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command request: ArrayNewSized, ListNewSized #564

Closed
JoshuaKGoldberg opened this issue Nov 12, 2018 · 0 comments
Closed

Command request: ArrayNewSized, ListNewSized #564

JoshuaKGoldberg opened this issue Nov 12, 2018 · 0 comments

Comments

@JoshuaKGoldberg
Copy link
Member

What command(s) would you like to add?

array new sized

list new sized

Creates a new array or list of a fixed size, rather than blank or with existing items.

Sample usage

array new sized : string 5
list new sized : int 10

Why?

I'm working on making a Vector implementation similar to C++'s. There needs to be a way to create an array of a fixed size without knowing the items that will be placed it. #506.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant