public static TSource?SingleOrNull <TSource>(this IReadOnlyList <TSource> source, Func <TSource, bool> predicate)
            where TSource : struct
        {
            switch (source)
            {
            case TSource[] array:
                return(ArrayExtensions.SingleOrNull <TSource>(array, predicate));

            default:
                return(ReadOnlyList.SingleOrNull <IReadOnlyList <TSource>, IEnumerator <TSource>, TSource>(source, predicate));
            }
        }