"chain" vs "~"

pascal111 judas.the.messiah.111 at gmail.com
Mon Aug 8 01:05:40 UTC 2022


On Sunday, 7 August 2022 at 03:55:50 UTC, Emanuele Torre wrote:
> On Sunday, 7 August 2022 at 01:22:18 UTC, pascal111 wrote:
>> [...]
>
> They are quite different:
> * `chain` gives you "range" (iterator) that starts from the 
> first element of `x` and ends at the last element of `y` (like 
> e.g. `zip` in other languages).
> * `~` creates a new `int[]` with elements from `x` and the 
> elements from `y`.
>
> [...]

In next program, I used "insertInPlace", not "~" nor "chain", 
should I use "~" or it's the same as "insertInPlace"?

https://github.com/pascal111-fra/D/blob/main/coco.d


More information about the Digitalmars-d-learn mailing list