Jul-02-2020, 04:25 AM
(This post was last modified: Jul-02-2020, 04:29 AM by zpacemanzpiff.)
Thank you. I'll work on my terminology. Also, adding
Frankly, I'm still really hazy on recursion and what's talking to what. The materials thus far made sense as basically being step-a, step-b, do-step-c-until-d-happens sorts of processes. Ultimately, I know that beyond my confusion, this has to simply be more of that, but something about this isn't clicking for me. I'll keep at it, though. Thanks again!
return arr
at the end of those blocks made my junk work. Please tell me if I'm understanding this correctly: originally, if I put in a list of 2 or more numbers, the list got passed to 8 or 11 repeatedly until it was down to one member. At that point, 5 happens, and that returned the right number...but only to whatever loop recursive step summoned it, not back out to main(). With returns added, the number gets safely passed back up to where I can work with it again. Oof, head hurts. Frankly, I'm still really hazy on recursion and what's talking to what. The materials thus far made sense as basically being step-a, step-b, do-step-c-until-d-happens sorts of processes. Ultimately, I know that beyond my confusion, this has to simply be more of that, but something about this isn't clicking for me. I'll keep at it, though. Thanks again!