Bulk Constructors - arraylist.New(1, 2, 3, 4) #36
Labels
No labels
bug
discussion
documentation
duplicate
ignore
new feature
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
golibs/gms-gods#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Perhaps making New() functions of containers variadic to allow for optimized bulk insertions during initialization.
Or maybe create a new bulk constructor like so
arraylist.From(1, 2, 3, 4)orarraylist.OfIs this something that will be implemented? I am looking for something to contribute to the Go community and this will be a really nice short project for me.
@dsantosp12 I am looking forward to implementing this. For lists and sets it's simple, but the other structures (maps/trees) I am unsure about how to pass those values and keep the API clean. I suppose we could start with lists/sets. I am planning on spending a day or two on all these new requests
@emirpasic cool. I can start the lists/sets if you want and make a pull request and after that we can start looking at options for maps/trees structures. If you want me to move forward, assign it to me.
@dsantosp12 sure, you can start and there is already some work done by @Spriithy https://github.com/emirpasic/gods/pull/61
I hope you can use some of it. Once you implement it, create a pull request so I can add the relevant documentation.
Will do this weekend!