On 10/15/2014 09:35 PM, MachineCode wrote:
Is there one function in the Phobos library to check if give an array is
equal to first elements in another array? e.g, f(a, b) the entire b
array must match to first elements in a and then return true otherwise
false, ie:
a[0 .. b.length] == b
proba
On Thursday, 16 October 2014 at 04:35:13 UTC, MachineCode wrote:
Is there one function in the Phobos library to check if give an
array is equal to first elements in another array?
auto n = min(a.length, b.length);
if (a[0..n] == b[0..n]) ...