metaeducation / rebol-issues

6 stars 1 forks source link

break from remove-each doesn't work as expected #2192

Closed rebolbot closed 2 months ago

rebolbot commented 9 years ago

Submitted by: szeng

Reported by MichaT from AltMe.

This is the actual result:

>> remove-each n s: [1 2 3 4] [print n if n = 2 [break] true] s
1
2
== [3 4]

This is what's expected:

>> remove-each  n s: [1 2 3 4] [print n if n = 2 [break] true] s
1
2
== [2 3 4]

CC - Data [ Version: r3 master Type: Bug Platform: All Category: Unspecified Reproduce: Always Fixed-in:none ]

rebolbot commented 9 years ago

Submitted by: szeng

Fixed by: https://github.com/zsx/r3/commit/b3364594eff99aeef092d57fda0e51cb1335b5e4