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

array: add init field to initialization to overwrite the default value for preallocation #82

Open
serkonda7 opened this issue Jun 9, 2023 · 0 comments
Milestone

Comments

@serkonda7
Copy link
Member

Describe the feature

a := []i32{ length = 2 } // [0, 0]

b := []i32{ length = 2 init = -1 } // [-1, -1]

Proposed Solution

No response

Additional Information

No response

@serkonda7 serkonda7 added this to the 1.x milestone Jul 13, 2023
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