Thankyou. That is (almost) perfect.
Which impresses the heck outta me cos I've rather spent altogether too long staring at that code trying to refactor it and every time I changed it, it broke . Badly.
And I have had another (very competent) set of eyes look it over (complete with the full context) prior to posting.
Plugged your version back into the real conetxt and made two changes:
Both trivial typos given the "paper exercise" nature of the task.
You will see the code in it's proper context over the next couple of weeks or so, but for now. Thankyou.
In reply to Re^2: Refactoring challenge.
by BrowserUk
in thread Refactoring challenge.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |