4 ms·
Thanks for pointing this out, it's now fixed. https://github.com/eatnumber1/goal/pull/18 https://github.com/eatnumber1/goal/pull/18
by nickdepinet 12y ago
Thanks for pointing this out, it's now fixed.
https://github.com/eatnumber1/goal/pull/18 https://github.com/eatnumber1/goal/pull/18
- bobbyi_settv 12y agoNick, That helps but doesn't completely solve the state problem. Try adding these two lines to the end of the program: g()()()()() print g('al') I think 'gal' should be printed here. Rule 7 says that's what your function should return given 'al', and the fact that we've called it in some other way before doesn't change the fact that it is required to return 'gal' given 'al'. The solution I posted above handles this scenario (and, as a bonus, is thus threadsafe in case multiple people were doing g()()()('al') simultaneously).