Also, bug still occurs when the function is rewritten to use indices instead of iterators. Appears the control flow statements are the issue.
Also, bug still occurs when the function is rewritten to use indices instead of iterators. Appears the control flow statements are the issue.