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