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

cross operator X=> gives different result for List and Array #5416

Open
p6rt opened this issue Jul 4, 2016 · 1 comment
Open

cross operator X=> gives different result for List and Array #5416

p6rt opened this issue Jul 4, 2016 · 1 comment

Comments

@p6rt
Copy link

@p6rt p6rt commented Jul 4, 2016

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

Searchable as RT128533$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jul 4, 2016

From wamba@centrum.cz

dd (1 X=> (1,2).List)>>.WHICH, (1 X=> (1,2).Array)>>.WHICH
prints​:
("Pair|Int|1|Int|1", "Pair|Int|1|Int|2")
(ObjAt.new, ObjAt.new)

say so all(1 X=> 1,2) (elem) set(1=>1,1=>2)
puts True, but
my @​a=1,2;
say so all(1 X=> @​a) (elem) set(1=>1,1=>2)
puts False

http://irclog.perlgeek.de/perl6/2016-07-04#i_12780360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.