public static int BinarySearch <T>(this IList <T> source, T value) { return(Colls.BinarySearch(source, t => t, value)); }
public static int BinarySearch <TSource, TValue>(this IList <TSource> source, Func <TSource, TValue> map, TValue value) { return(Colls.BinarySearch(source, map, value, Comparer <TValue> .Default)); }
public static IEnumerable <T> RemoveIf <T>(this IList <T> source, Func <T, bool> predicate) { return(Colls.RemoveIf(source, predicate)); }
public static IEnumerable <T> Merge <T>(this IEnumerable <T> source, IEnumerable <T> right, int limit) { return(Colls.Merge(source, right, limit)); }
public static IReadOnlyList <T> OfList <T>(params T[] @params) { return(Colls.OfList(@params).AsReadOnly()); }
public static IEnumerable <string> RemoveDuplicatesIgnoreCase(this IList <string> source) { return(Colls.RemoveDuplicatesIgnoreCase(source)); }
public static T GetOrAdd <T>(this ICollection <T> source, Func <T, bool> selector, Func <T> factory) { return(Colls.GetOrAdd(source, selector, factory)); }
public static int BinarySearch <T>(this IList <T> source, int index, int length, T value, IComparer <T> comparer) { return(Colls.BinarySearch(source, index, length, t => t, value, comparer)); }
public static IEnumerable <T> AddIfNotExist <T>(this IEnumerable <T> source, T value, Func <T, bool> existFunc = null) { Func <T, bool> condition = t => !source.Contains(t); return(Colls.AddIf(source, value, v => existFunc?.Invoke(v) ?? condition(v))); }
public static IEnumerable <T> AddIfNotNull <T>(this IEnumerable <T> source, T value) { return(Colls.AddIf(source, value, v => v is not null)); }
public static IEnumerable <T> AddIf <T>(this IEnumerable <T> source, T value, Func <T, bool> condition) { return(Colls.AddIf(source, value, condition)); }
public static IEnumerable <T> AddIf <T>(this IEnumerable <T> source, T value, bool flag) { return(Colls.AddIf(source, value, flag)); }
public static IEnumerable <T> AddRange <T>(this IEnumerable <T> source, IEnumerable <T> collection, int limit) { return(Colls.AddRange(source, collection, limit)); }
public static int BinarySearch <T>(this IList <T> source, T value, IComparer <T> comparer) { return(Colls.BinarySearch(source, 0, source.Count, t => t, value, comparer)); }
public static IEnumerable <TSource> RemoveDuplicates <TSource>(this IList <TSource> source) { return(Colls.RemoveDuplicates(source)); }
public static int BinarySearch <TSource, TValue>(this IList <TSource> source, Func <TSource, TValue> map, TValue value, IComparer <TValue> comparer) { return(Colls.BinarySearch(source, 0, source.Count, map, value, comparer)); }
public static IEnumerable <TSource> RemoveDuplicates <TSource, TCheck>(this IList <TSource> source, Func <TSource, TCheck> duplicatePredicate) { return(Colls.RemoveDuplicates(source, duplicatePredicate)); }
public static int BinarySearch <TSource, TValue>(this IList <TSource> source, int index, int length, Func <TSource, TValue> map, TValue value, IComparer <TValue> comparer) { return(Colls.BinarySearch(source, index, length, map, value, comparer)); }
public static IReadOnlyList <T> OfList <T>(IEnumerable <T> list, params IEnumerable <T>[] listParams) { return(Colls.OfList(list, listParams).AsReadOnly()); }