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

List.Set loses List elements #6144

Open
p6rt opened this issue Mar 10, 2017 · 2 comments
Open

List.Set loses List elements #6144

p6rt opened this issue Mar 10, 2017 · 2 comments
Labels
Rakudo Tickets to be moved to rakudo/rakudo/issues

Comments

@p6rt
Copy link

p6rt commented Mar 10, 2017

Migrated from rt.perl.org#130973 (status was 'new')

Searchable as RT130973$

@p6rt
Copy link
Author

p6rt commented Mar 10, 2017

From zefram@fysh.org

Coercion from List to Set mostly works as expected, returning a Set
containing the objects that were elements of the List​:

(2,3,5).perl
(2, 3, 5)
(2,3,5).Set.perl
set(5,3,2)

but it loses when one of the elements is itself a List​:

(2,(3,5)).perl
(2, (3, 5))
(2,(3,5)).Set.perl
set(5,3,2)

I'd expect that coercion to yield a two-element Set in which one of the
elements is a List. Instead it's yielded a three-element Set in which
all of the elements are Ints.

-zefram

@p6rt p6rt added the Bug label Jan 5, 2020
@AlexDaniel
Copy link
Member

AlexDaniel commented Feb 8, 2020

This was fixed in (2018-07-17) rakudo/rakudo@6ad096c

Tests needed.

Sorry, I left this comment thinking it's a different ticket. Nevermind, it's still an issue.

@AlexDaniel AlexDaniel added testneeded Rakudo Tickets to be moved to rakudo/rakudo/issues and removed Bug testneeded labels Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rakudo Tickets to be moved to rakudo/rakudo/issues
Projects
None yet
Development

No branches or pull requests

2 participants