In a tutorial I’m currently reading
(http://pine.fm/LearnToProgram/?Chapter=10), this came up.
def doUntilFalse firstInput, someProc
input = firstInput
output = firstInput
input = output
output = someProc.call input
They never really explained how this works though:
What exactly is Ruby checking for here? The author uses this code for
puts doUntilFalse(, buildArrayOfSquares).inspect
So the while loop would be something like this: “while ”
Shouldn’t it be like “while  != something”?
I’m extremely confused about this :), as far as I can see, it’s like
asking ‘What’s the difference between an elephant.’ If someone could
just simply explain this it would be awesome! Thanks in advance!