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.unshift doesn't unshift values that boolify to false in Rakudo #2525

Closed
p6rt opened this issue Oct 21, 2011 · 4 comments
Closed

List.unshift doesn't unshift values that boolify to false in Rakudo #2525

p6rt opened this issue Oct 21, 2011 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 21, 2011

Migrated from rt.perl.org#101876 (status was 'resolved')

Searchable as RT101876$

@p6rt
Copy link
Author

p6rt commented Oct 21, 2011

From @masak

<masak> nom​: my @​a = < a b c >; @​a.unshift(1); @​a.unshift(0);
@​a.unshift(2); @​a.unshift(""); @​a.unshift(3); @​a.unshift(4);
@​a.perl.say
<p6eval> nom 410361​: OUTPUT«Array.new(4, 3, 2, 1, "a", "b", "c")␤»
<masak> <japhb> Bug​: List.unshift won't unshift false values.
* masak submits rakudobug
<masak> niecza​: my @​a = < a b c >; @​a.unshift(1); @​a.unshift(0);
@​a.unshift(2); @​a.unshift(""); @​a.unshift(3); @​a.unshift(4);
@​a.perl.say
<p6eval> niecza v10-58-gc851cf8​: OUTPUT«[4, 3, "", 2, 0, 1, "a", "b",
"c"].list␤»

@p6rt
Copy link
Author

p6rt commented Oct 21, 2011

From @moritz

Now fixed in rakudo/nom.

@p6rt
Copy link
Author

p6rt commented Oct 21, 2011

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Oct 21, 2011
@p6rt
Copy link
Author

p6rt commented Oct 21, 2011

From @moritz

... and tested in unshift.t, I forgot to say.

@p6rt p6rt added the Bug label Jan 5, 2020
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

1 participant