mirror of
https://github.com/deavmi/doap
synced 2024-07-04 15:50:15 +02:00
Utils
- Documented method
This commit is contained in:
parent
9fb143dfc9
commit
a8e9debbb3
|
@ -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)
|
public bool isPresent(T)(T[] array, T value)
|
||||||
{
|
{
|
||||||
if(array.length == 0)
|
if(array.length == 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user