Hi there!
Thank you guys for all the the responses... Let me try tro adress them all with @mentions in this post.
@soegaard : Well, there is a few check-expects that differ from the expected value, but mainly I'm concerned about why my cond
expression tells me none of it's conditions are met, when I feed it the string "resting"
as an argument to the main
function, while it's first condition is [(string? x) x]
... This first one should yield true
right?...Going from there, I don't even know if I can make sense of the check-expects...
@spdegabrielle : Thank you for the welcome!
I have already made use of the on-tick
function as a means to add one to an argument. They've had names like tok
or advance-kitty
, but what I don't understand here, is why it's not even mentioned at the end of this section of the book... But then again, if it yields a string, as it is supposed to before user input, how would the number one be added to a string?... So I was wondering if I was supposed to come up with an alternative, but I don't see how as of yet...
Besides, the fact the cond
expression doesn't accept "resting"
as a string breaks all my assumptions, so while I was able to work through faulty check-expects until now, here I have no idea what to do, or if my tries haven't broken the program even more...
Should I post the program here?
@dstorrs : Haha! I feel better already, thanks!
@smtuttle : Hi! Yeah no, I get that... What I don't understand, is why it's not mentioned in the example, so that it can call the fly
function incrementally... Maybe I should make a helper function to feed on-tick
instead of fly
, and this new one would yield only numbers?...
I'm sorry, I know I might very well not be savvy enough to even ask the right questions the right way, but I hope this post will at least help me see what is wrong in the way I understand these things... And I promise I'll try to make my questions better as I go along...
Thanks again to all of you!