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]) ...
thedeemon via Digitalmars-d-learn Wed, 15 Oct 2014 23:17:58 -0700
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]) ...