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

UNIQUE/SKIP is not working correctly #726

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 1 comment
Closed

UNIQUE/SKIP is not working correctly #726

Siskin-Bot opened this issue Feb 15, 2020 · 1 comment
Labels

Comments

@Siskin-Bot
Copy link
Collaborator

Siskin-Bot commented Feb 15, 2020

Submitted by: henrikmk

It appears that when using /SKIP, only the first record is tested for uniqueness.

>> a: [1 2 3 4 5 6 1 2 3 4]
== [1 2 3 4 5 6 1 2 3 4]

>> unique/skip a 2
== [1 2 3 4 5 6 3 4]  ; should be [1 2 3 4 5 6]

>> a: [1 2 3 4 5 6 1 2 3 4 5 6]
== [1 2 3 4 5 6 1 2 3 4 5 6]

>> unique/skip a 2
== [1 2 3 4 5 6 3 4 5 6]  ; should be [1 2 3 4 5 6]

>> unique/skip a 3
== [1 2 3 4 5 6 4 5 6]  ; should be [1 2 3 4 5 6]

Imported from: CureCode [ Version: alpha 49 Type: Bug Platform: All Category: Native Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#726

Comments:

Rebolbot commented on Aug 25, 2010:

Submitted by: henrikmk

This bug appears also in R2, it seems: http://www.rebol.net/cgi-bin/rambo.r?id=4018&


Rebolbot commented on Mar 2, 2013:

Submitted by: BrianH

This is a general problem with the functions which use /skip for dealing with series of fixed records. We're discussing the issue in #428.


Rebolbot added the Type.bug on Jan 12, 2016


@Oldes
Copy link
Owner

Oldes commented Sep 22, 2022

@henrikmk The bug was fixed in Oldes/Rebol3@07e09a2 So far I'm keeping the same result like in Red.

@Oldes Oldes closed this as completed Sep 22, 2022
@Oldes Oldes added Test.written Oldes.resolved Bugs/wishes with Oldes' fixes/features labels Sep 22, 2022
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