Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rebolbot opened this issue Jan 27, 2015 · 1 comment
Closed

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

rebolbot opened this issue Jan 27, 2015 · 1 comment
Labels

Comments

@rebolbot
Copy link
Collaborator

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
Copy link
Collaborator Author

Submitted by: szeng

Fixed by: zsx/r3@b336459

Oldes added a commit to Oldes/Rebol3 that referenced this issue Jun 25, 2018
Reported by MichaT from altme.

This is what 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]

Fixes: metaeducation/rebol-issues#2192

(cherry picked from commit b336459)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants