This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingReport the first index where the pattern occurs, or minus one.
What this asks
Find the first index where the pattern occurs in the text.
Scan from the left and return at the first complete match, or minus one when none exists.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing