comment cleanup
This commit is contained in:
parent
d10df10351
commit
1d56143712
src/Instructions
@ -157,7 +157,6 @@ instructionYankDup state@(State {_int = i : is}) accessor =
|
||||
else state
|
||||
instructionYankDup state _ = state
|
||||
|
||||
-- int non generic too
|
||||
instructionYank :: forall a. State -> Lens' State [a] -> State
|
||||
instructionYank state@(State {_int = i : is}) accessor =
|
||||
let
|
||||
@ -171,7 +170,7 @@ instructionYank state@(State {_int = i : is}) accessor =
|
||||
if notEmptyStack state{_int = is} accessor then deletedState & accessor .~ item : view accessor deletedState else state
|
||||
instructionYank state _ = state
|
||||
|
||||
-- instructionShoveDup and instructionShove behave differently when indexing in such a way that
|
||||
-- In pysh, instructionShoveDup and instructionShove behave differently when indexing in such a way that
|
||||
-- the duplicated index matters whether or not it's present in the stack at the moment of calculation.
|
||||
-- I'm not going to keep this behavior. Check out interpysh examples for how pysh handles it.
|
||||
instructionShoveDup :: State -> Lens' State [a] -> State
|
||||
|
@ -94,8 +94,6 @@ instructionStringInsertChar state@(State {_string = s1 : ss, _char = c1 : cs, _i
|
||||
instructionStringInsertChar state = state
|
||||
|
||||
instructionStringContainsChar :: State -> State
|
||||
-- instructionStringContainsChar state@(State {_string = s1 : ss, _char = c1 : cs, _bool = bs}) = state{_string = ss, _char = cs, _bool = (findSubA s1 [c1] /= -1) : bs}
|
||||
-- instructionStringContainsChar state = state
|
||||
instructionStringContainsChar state = instructionVectorContains state char string
|
||||
|
||||
instructionStringIndexOfChar :: State -> State
|
||||
|
Loading…
x
Reference in New Issue
Block a user