std.array.array for immutable data types

Nicholas Wilson iamthewilsonator at hotmail.com
Mon Feb 19 07:25:07 UTC 2018


On Monday, 19 February 2018 at 07:08:49 UTC, Fra Mecca wrote:
> Is there a way to avoid using to! conversion here?
>
> immutable string[] dst = to!(immutable 
> string[])(array(pipe.readEnd.byLineCopy));

assumeUnique.

immutable string[] dst = 
pipe.readEnd.byLineCopy.array.assumeUnique;


More information about the Digitalmars-d-learn mailing list