mirror of
https://github.com/deavmi/doap
synced 2024-07-04 13:50:51 +02:00
Utils
- Documented method
This commit is contained in:
parent
a8e9debbb3
commit
e01081c59a
|
@ -142,6 +142,15 @@ unittest
|
||||||
assert(isPresent(values, 5) == false);
|
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))
|
public T findNextFree(T)(T[] used) if(__traits(isIntegral, T))
|
||||||
{
|
{
|
||||||
T found;
|
T found;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user