Fastest Way to Append Multiple Elements to an Array

Damian via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 30 16:36:35 PST 2014


On Friday, 26 December 2014 at 16:31:48 UTC, Nordlöw wrote:
> On Friday, 26 December 2014 at 16:29:56 UTC, Nordlöw wrote:
>> See my update at
>>
>> https://github.com/nordlow/justd/blob/master/algorithm_ex.d#L1602
>>
>> which tries to merge all the ideas into one adapting algorithm 
>> :)
>>
>> Destroy!
>
> BTW:
>
> 1. Is is relevant to extend `append` to data being a 
> non-Random-Access range?
> 2. I guess a corresponding `prepend` is motivated aswell, right?

Append and Prepend would be very useful additions to Phobos it's
quite surprising there not already there? In any case would love
to see some pull requests :)


More information about the Digitalmars-d-learn mailing list