- Documented method
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 22:18:51 +02:00
parent 9fb143dfc9
commit a8e9debbb3

View File

@ -100,6 +100,17 @@ unittest
}
/**
* Checks if the given value is present in
* the given array
*
* Params:
* array = the array to check against
* value = the value to check prescence
* for
* Returns: `true` if present, `false`
* otherwise
*/
public bool isPresent(T)(T[] array, T value)
{
if(array.length == 0)