This commit is contained in:
Rowan Torbitzky-Lane 2025-01-30 02:44:34 -06:00
parent 63e9cff55e
commit fe70af6e28
2 changed files with 1 additions and 4 deletions

View File

@ -76,10 +76,6 @@ codeRecursiveSize _ = 1
instructionCodePop :: State -> State
instructionCodePop state = instructionPop state code
-- instructionCodeFromExec :: State -> State
-- instructionCodeFromExec state@(State {_exec = (e1 : es), _code = cs}) = state {_exec = es, _code = e1 : cs}
-- instructionCodeFromExec state = state
instructionCodeIsCodeBlock :: State -> State
instructionCodeIsCodeBlock state@(State {_code = (c : cs), _bool = bs}) = state {_code = cs, _bool = isBlock c : bs}
instructionCodeIsCodeBlock state = state

View File

@ -29,6 +29,7 @@ subList idx0 idx1 xs =
in
take adjEnd (drop adjStart xs)
-- Maybe could've used Data.List.isSubsequenceOf :shrug:
findSubA :: forall a. Eq a => [a] -> [a] -> Int
findSubA fullA subA
| length fullA < length subA = -1