void append(T, Args...)(ref T[] arr, auto ref Args args){ { static if (args.length == 1) arr ~= args[0]; // inlined else{ arr.length += args.length; foreach(i, e; args) arr[$ - args.length + i] = e; } }
Is it un-Phobos-like to make append return a reference to data like at
https://github.com/nordlow/justd/blob/master/algorithm_ex.d#L1605