thomaswevans
2020-8-26 00:27:50

Hello again. I have another question that I would be awfully grateful for input on; it concerns exercise 476: https://htdp.org/2020-8-1/Book/part_five.html#(counter._fsm._(exercise._ex~3afsm-match))

I made a solution which uses generative recursion: https://pastebin.com/2WEkdiDP

However, whereas the hint for the problem states: “Design the necessary auxiliary function locally to the fsm-match? function. In this context, represent the problem as a pair of parameters: the current state of the finite state machine and the remaining list of https://htdp.org/2020-8-1/Book/part_one.html#%28tech._1string%29\|1Strings”, my solution neither uses an FSM-State as a function parameter nor turns the input string into a list of 1Strings, so I am worried that what I have come up with is somehow suboptimal. My thanks in advance for any help.