- Documented method
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-25 22:19:44 +02:00
parent a8e9debbb3
commit e01081c59a

View File

@ -142,6 +142,15 @@ unittest
assert(isPresent(values, 5) == false);
}
/**
* Given an array of values this tries to find
* the next free value of which is NOT present
* within the given array
*
* Params:
* used = the array of values
* Returns: the free value
*/
public T findNextFree(T)(T[] used) if(__traits(isIntegral, T))
{
T found;