# New Ticket Created by  Edwin Steiner 
# Please include the string:  [perl #124204]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124204 >


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

Reply via email to