using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BITKit { public static partial class Extensions { public static IEnumerable SelectWhere(this IEnumerable source, Func selector) { return source.Where(x => selector.Invoke(x) is not null).Select(x => selector.Invoke(x)); } } }