Add set(index, value) to List interface #86

Closed
opened 2018-09-19 00:07:41 +00:00 by bminer · 2 comments
bminer commented 2018-09-19 00:07:41 +00:00 (Migrated from github.com)

In many (most?) List implementations, a method to set a given value is often exposed.

For example, with Go slices we can do:

x := make([]int, 4)
x[2] = 7 // This method is missing for ArrayList et. al.

Thoughts on this? I would be willing to do a PR.

In many (most?) List implementations, a method to set a given value is often exposed. For example, with Go slices we can do: ```go x := make([]int, 4) x[2] = 7 // This method is missing for ArrayList et. al. ``` Thoughts on this? I would be willing to do a PR.
emirpasic commented 2018-09-19 01:50:52 +00:00 (Migrated from github.com)

@bminer absolutely, can't believe that nobody asked for this before and i didn't add it from the start. you are welcome to do a PR

@bminer absolutely, can't believe that nobody asked for this before and i didn't add it from the start. you are welcome to do a PR
bminer commented 2018-10-02 01:40:56 +00:00 (Migrated from github.com)

@emirpasic - Thanks for merging and for maintaining a really nice lib like this! Cheers!

@emirpasic - Thanks for merging and for maintaining a really nice lib like this! Cheers!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
golibs/gms-gods#86
No description provided.