search-from ( seq from obj -- i/f )


Vocabulary
boyer-moore

Inputs
seqa sequence
froma non-negative integer
objan object


Outputs
i/fthe index of first match or f


Generic word contract
Performs an attempt to find the first occurrence of pattern in seq starting from from using Boyer-Moore search algorithm. Output is the index if the attempt was succeessful, or f otherwise.

Examples
USING: boyer-moore prettyprint ; { 1 2 7 10 20 2 7 10 } 3 { 2 7 10 } search-from .
5


Definition

GENERIC: search-from ( seq from obj -- i/f )


Methods