fix bug with shadowing 'finishIdx' value, when we still wanted access to both the previous and the new 'finishIdx'
This commit is contained in:
@@ -259,20 +259,20 @@ struct
|
|||||||
, startIdx
|
, startIdx
|
||||||
, finishIdx
|
, finishIdx
|
||||||
)
|
)
|
||||||
| VALID finishIdx =>
|
| VALID foundIdx =>
|
||||||
let
|
let
|
||||||
val acc = PersistentVector.append (startIdx, finishIdx, acc)
|
val acc = PersistentVector.append (startIdx, foundIdx, acc)
|
||||||
in
|
in
|
||||||
loop
|
loop
|
||||||
( strIdx + 1
|
( foundIdx + 1
|
||||||
, hd
|
, hd
|
||||||
, tl
|
, tl
|
||||||
, prevStrings
|
, prevStrings
|
||||||
, origNfa
|
, origNfa
|
||||||
, origNfa
|
, origNfa
|
||||||
, acc
|
, acc
|
||||||
, absIdx + 1
|
, foundIdx + 1
|
||||||
, absIdx + 1
|
, foundIdx + 1
|
||||||
, finishIdx
|
, finishIdx
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user