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.squish(:as(...)) needlessly stringifies things #3761

Closed
p6rt opened this issue Mar 28, 2015 · 4 comments
Closed

List.squish(:as(...)) needlessly stringifies things #3761

p6rt opened this issue Mar 28, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 28, 2015

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

Searchable as RT124204$

@p6rt
Copy link
Author

p6rt commented Mar 28, 2015

From @edwinst

The List.squish method variant with the :&as parameter needlessly turns the return value of &as into a Str​:

This is perl6 version 2015.03 built on MoarVM version 2015.03

('', Any, Any).squish(​:as(-> $x {$x})).perl.say
use of uninitialized value $x of type Any in string context in block <unit> at <unknown file>​:1

use of uninitialized value $x of type Any in string context in block <unit> at <unknown file>​:1

("",).list

While this works for unique​:

('', Any, Any).unique(​:as(-> $x {$x})).perl.say
("", Any).list

@p6rt
Copy link
Author

p6rt commented Sep 16, 2015

From @usev6

This was fixed with commit 24931c4307. The tests in S32-list/squish.t are passing now.

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Sep 16, 2015

From @usev6

This was fixed with commit 24931c4307. The tests in S32-list/squish.t are passing now.

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Sep 16, 2015

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

@p6rt p6rt closed this as completed Sep 16, 2015
@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