How to expand the list? #152

Closed
opened 2021-01-15 03:29:27 +00:00 by baagod · 2 comments
baagod commented 2021-01-15 03:29:27 +00:00 (Migrated from github.com)

case:

ns := []int{1, 2, 3}
list := arraylist.New(11, 22)
list.extend(ns)  // 11, 22, 1, 2, 3

Can this function be achieved?

case: ```go ns := []int{1, 2, 3} list := arraylist.New(11, 22) list.extend(ns) // 11, 22, 1, 2, 3 ``` Can this function be achieved?
emirpasic commented 2022-04-12 20:06:12 +00:00 (Migrated from github.com)

https://github.com/emirpasic/gods/pull/153#issuecomment-1097047231

i.e.

for it := anotherArray.Iterator(); it.Next(); {
    myArray.Add(it.Value()
}
https://github.com/emirpasic/gods/pull/153#issuecomment-1097047231 i.e. ```go for it := anotherArray.Iterator(); it.Next(); { myArray.Add(it.Value() } ```
emirpasic commented 2022-04-12 20:06:12 +00:00 (Migrated from github.com)

https://github.com/emirpasic/gods/pull/153#issuecomment-1097047231

i.e.

for it := anotherArray.Iterator(); it.Next(); {
    myArray.Add(it.Value()
}
https://github.com/emirpasic/gods/pull/153#issuecomment-1097047231 i.e. ```go for it := anotherArray.Iterator(); it.Next(); { myArray.Add(it.Value() } ```
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#152
No description provided.