Below, you can find another hint for the Challenge.
You should only get here after reading, digesting, and applying the .
The markers can easily be recognized by the escape character tilde. Thus, a general pattern to process escape character sequences is as follows:
Here are function definitions, without blueprint and main program, that incorporate these ideas. We have also introduced some extra variables to improve readability.
It would be good to test these definitions before continuing. This can be done interactively, by using as main program (following the definitions above):
For instance, supply as input
It outputs (you should ):
Can you complete the program, by supplying the appropriate blueprint and main program?
Try your program in the machine, and see if you can extend it to an improved solution.
It is your turn ...
If you tried this hint, or do not see how it helps, then you are ready for the .