mirror of
https://github.com/deavmi/doap
synced 2024-06-30 15:07:48 +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)
|
||||
{
|
||||
if(array.length == 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user