This commit is contained in:
CortexCore
2025-08-03 02:28:50 +08:00
parent ecae0f809c
commit c3f0a8e840
8 changed files with 114 additions and 6 deletions

View File

@@ -113,6 +113,19 @@ namespace BITKit
}
return false;
}
public static bool Contains<T>(this Span<T> span, T value)
{
foreach (var t in span)
{
if (Equals(t, value))
return true;
}
return false;
}
public static bool Contains<T>(IEnumerable<T> a, IEnumerable<T> b)
{
foreach (var x in b)