From 5a2bd690f76749df09262a251dd967bd22905158 Mon Sep 17 00:00:00 2001 From: Kyle Ratti Date: Wed, 2 Aug 2023 20:24:09 -0400 Subject: [PATCH] fix: remove duplicate Choose extension --- Base/Structures/MaybeExtensions.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Base/Structures/MaybeExtensions.cs b/Base/Structures/MaybeExtensions.cs index 039d351..bbf8452 100644 --- a/Base/Structures/MaybeExtensions.cs +++ b/Base/Structures/MaybeExtensions.cs @@ -27,10 +27,4 @@ public static class MaybeExtensions public static T? ToNullable(this Maybe item) where T : struct => item.HasValue ? item.Value : null; - - public static IEnumerable Choose(this IEnumerable enumerable, Func> mapper) => - enumerable - .Select(mapper) - .Where(x => x.HasValue) - .Select(x => x.Value); }