Lots more work on implementing battling

This commit is contained in:
Deukhoofd committed 2024-08-10 09:44:46 +02:00
1 parent 554e1cf2cd
commit a049dda240
29 files changed
+1226 -48

No files matched your search

@@ -1,7 +1,13 @@
namespace PkmnLib.Static.Utils;
/// <summary>
/// Extension methods for <see cref="IEnumerable{T}"/>.
/// </summary>
public static class EnumerableHelpers
{
/// <summary>
/// Returns all elements of the enumerable that are not null.
/// </summary>
public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> enumerable) where T : class =>
enumerable.Where(x => x is not null)!;
}