[chronojump] Added Util.FoundOnListInt()



commit 067f4e575d6f04281ee6dc765855880c13d80801
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Oct 28 18:52:23 2019 +0100

    Added Util.FoundOnListInt()

 src/util.cs | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/util.cs b/src/util.cs
index 22e0b0b3..5fe74cb8 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -1831,7 +1831,14 @@ public class Util
                return false;
        }
 
-       public static bool FoundInListDouble(List<double>l, double d) {
+       public static bool FoundInListInt(List<int> l, int i) {
+               foreach (int i2 in l)
+                       if(i2 == i)
+                               return true;
+
+               return false;
+       }
+       public static bool FoundInListDouble(List<double> l, double d) {
                foreach (double d2 in l)
                        if(d2 == d)
                                return true;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]