true if present, false otherwise
Tests the isPresent!(T)(T[], T) function
Case: Non-empty array
ubyte[] values = [1,2,3]; foreach(ubyte value; values) { assert(isPresent(values, value)); } assert(isPresent(values, 0) == false); assert(isPresent(values, 5) == false);
Tests the isPresent!(T)(T[], T) function
Case: Empty array
assert(isPresent([], 1) == false);
Checks if the given value is present in the given array