12-05-2020, 01:36 PM
I have a different questsion about the count-parameter on (move <from> <to>):
Shouldn't it be true in general that, if count is set to "(min (value) (- (size Stack at:(from)) 1))", whatever stands in for "(value)", you cannot move an entire stack. The parameter function says "choose the smallest of the following: one less than the stack size at (from), or (value)". The result could never be bigger than the stack size at (from), right?
It sounds obvious, but this is not my experience. Before I post details, is it possible to explain whether my reasoning is faulty?
Shouldn't it be true in general that, if count is set to "(min (value) (- (size Stack at:(from)) 1))", whatever stands in for "(value)", you cannot move an entire stack. The parameter function says "choose the smallest of the following: one less than the stack size at (from), or (value)". The result could never be bigger than the stack size at (from), right?
It sounds obvious, but this is not my experience. Before I post details, is it possible to explain whether my reasoning is faulty?