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

Feature Request: Allow to append/prepend multiple values #18

Open
guenhter opened this issue May 7, 2021 · 2 comments
Open

Feature Request: Allow to append/prepend multiple values #18

guenhter opened this issue May 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@guenhter
Copy link

guenhter commented May 7, 2021

With go slices it is possible to append multiple values:

s = append(s, anotherSlice...)

This is quite cumbersome currently with immutable, and also would create a lot of unnecessary lists.

Would it be possible to add support for this?

@guenhter guenhter changed the title Allow to append/prepend multiple values Feature Request: Allow to append/prepend multiple values May 7, 2021
@benbjohnson
Copy link
Owner

If you need to add multiple values initially, you can use the ListBuilder. I could maybe see optimizing for append/prepend on existing lists.

@guenhter
Copy link
Author

guenhter commented May 7, 2021

Actually, initially the list is most of the times empty but during runtime slices of elements should be added to it. So it would be nice to have this for existing lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants