From a8e9debbb3d34d34d8375a16372a6083895ae7f2 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 22:18:51 +0200 Subject: [PATCH] Utils - Documented method --- source/doap/utils.d | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/doap/utils.d b/source/doap/utils.d index 8be5896..237bc39 100644 --- a/source/doap/utils.d +++ b/source/doap/utils.d @@ -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)