remove

Alias to keep backwards compatibility with Array module in v1.x.x

Examples

Unittest

Buffer!(char) str;
test (copy(str, "Die Katze tritt die Treppe krumm.") == "Die Katze tritt die Treppe krumm.");

str.length = 0;
test (concat(str, "Die "[], "Katze "[], "tritt "[], "die "[], "Treppe "[], "krumm."[]) == "Die Katze tritt die Treppe krumm.");

mstring nothing = null;

str.length = 0;
test (concat(str, "Die "[], ""[], "Katze "[], "tritt "[], nothing, "die "[], "Treppe "[], "krumm."[]) == "Die Katze tritt die Treppe krumm.");

str.length = 0;
append(str, "Die Katze "[]);
test (str[] == "Die Katze ");
append(str, "tritt "[], "die "[]);
test (append(str, "Treppe "[], "krumm."[]) == "Die Katze tritt die Treppe krumm.");

long[] arr = [1, 2, 3, 5, 8, 13, 21];

size_t n;

test(bsearch(arr, 5L, n));
test!("==")(n, 3);

test(bcontains(arr, 5L));

Meta