mirror of
https://github.com/deavmi/doap
synced 2024-06-30 14:28:02 +02:00
Utils
- Documented method
This commit is contained in:
parent
a8e9debbb3
commit
e01081c59a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user