19 lines
402 B
Plaintext
19 lines
402 B
Plaintext
// Phase 29ab P7: Pattern6 match scan first-fail (missing step)
|
|
// Expect: JoinIR freeze (missing step update)
|
|
|
|
static box Main {
|
|
find_missing_step(s, ch) {
|
|
local i = 0
|
|
loop(i < s.length()) {
|
|
if s.substring(i, i + 1) == ch {
|
|
return i
|
|
}
|
|
}
|
|
return -1
|
|
}
|
|
|
|
main() {
|
|
return Main.find_missing_step("abc", "b")
|
|
}
|
|
}
|