Returns the position where a pattern appears in a sequence.
Searches big for a subsequence that is element-for-element equal to pattern, as determined by the test argument.
test is applied to elements of successive subsequences of big and corresponding elements of the pattern to determine whether a match has occurred. If a subsequence is found, subsequence-position returns the index at which the subsequence starts; otherwise, it returns #f. If there is more than one match, count determines which subsequence is selected. A count of 1 (the default) indicates that the first match should be returned.
subsequence-position ("Ralph Waldo Emerson", "Waldo")
⇒ 6open
| big | An instance of <sequence>. |
| pattern | An instance of <sequence>. |
| test: | An instance of <function>. The default is ==. |
| count: | An instance of <integer>. The default is 1. |
| index | An instance of type-union(<integer>, <false>). |