what is D's idiom of Python's list.extend(another_list)?

mw mingwu at gmail.com
Mon Jun 21 05:36:36 UTC 2021


i.e append an array of elements into another array:


```Python
x = [1, 2, 3]
x.extend([4, 5])
print(x)  # [1, 2, 3, 4, 5]
```

Thanks.


More information about the Digitalmars-d-learn mailing list