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

Mike Parker aldacron at gmail.com
Mon Jun 21 07:02:19 UTC 2021


On Monday, 21 June 2021 at 06:16:15 UTC, mw wrote:

> Ha! great. I didn't know `~` works for both single elements and 
> array!

`~` by itself is the concatenation operator and only works with 
two array operands. `~=` is the append operator and can append 
arrays or single elements.


More information about the Digitalmars-d-learn mailing list