Function hasSubsequence

  • Check if iterable has a subsequence.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: Iterable<T>

      an iterable

    • y: Iterable<T>

      search subsequence

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

    • fm: MapFunction<T, T | U> = null

      map function (v, i, x)

    Returns boolean

    x[i₀] ⧺ x[i₁] ⧺ ... = y, for some i₀, i₁, ...? | i₀ < i₁ < ...

Generated using TypeDoc