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
Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Closed

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

Siskin-Bot opened this issue Feb 15, 2020 · 0 comments

Comments

@Siskin-Bot
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]

Imported from: CureCode [ Version: r3 master Type: Bug Platform: All Category: Unspecified Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#2192

Comments:

Rebolbot commented on Jan 27, 2015:

Submitted by: szeng

Fixed by: zsx/r3@b336459


Rebolbot added the Type.bug on Jan 12, 2016


Oldes added a commit to Oldes/Rebol3 that referenced this issue on Jun 25, 2018:
ATRONIX/FIX: Fix break from remove-each


@Oldes Oldes closed this as completed Jan 20, 2021
Oldes added a commit to Oldes/Rebol3 that referenced this issue Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants