Fastest Way to Append Multiple Elements to an Array
"Nordlöw" via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Dec 26 08:29:54 PST 2014
On Thursday, 18 December 2014 at 20:12:01 UTC, Tobias Pankrath
wrote:
> You shouldn't use my code verbatim though. For example, you
> should only use x.length, if x is of element type of data.
> Otherwise if you have e.g. an array of array you'd get totally
> wrong numbers.
What role does `x` play here? Does it mean the range `data` or
the `args` to be appended?
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!
More information about the Digitalmars-d-learn
mailing list