Function searchSubsequence

  • Find first index of a subsequence.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • y: T[]

      search subsequence

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

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

      map function (v, i, x)

    Returns number

    begin index of subsequence, -1 if not found

Generated using TypeDoc