/// <summary>Gets the highest index at which a condition is true, or -1 if nowhere.</summary> public static int LastIndexWhere <T>(this IList <T> list, Func <T, bool> pred) { return(LCInterfaces.LastIndexWhere(list.AsListSource(), pred)); }
public int IndexOf(T item) { return(LCInterfaces.IndexOf(this, item)); }
public static int LastIndexWhere <T>(this IListAndListSource <T> list, Func <T, bool> pred) => LCInterfaces.FinalIndexWhere(list, pred) ?? -1;
public virtual void CopyTo(T[] array, int arrayIndex) { LCInterfaces.CopyTo(this, array, arrayIndex); }
/// <summary>Gets the highest index at which a condition is true, or null if nowhere.</summary> public static int?FinalIndexWhere <T>(this IList <T> list, Func <T, bool> pred) => LCInterfaces.FinalIndexWhere(list.AsListSource(), pred);