Equation Citator v1.3.7 Documentation
    Preparing search index...
    • Find the location of pattern in target using KMP algorithm

      Type Parameters

      • T

      Parameters

      • pattern: T[]

        the pattern to find

      • target: T[]

        the target to search in

      Returns number

      the index of the first occurrence of pattern in target, if pattern is not found, return -1