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


Lists have their own .ACCEPTS that does the check based on elements.
You can smartmatch a Seq against a List or Array and get that behaviour, but if 
you smartmatch
it against another Seq, you get the default Any.ACCEPTS behaviour.

    <Zoffix_> m: say (1,).Seq ~~ (1,)
    <camelia> rakudo-moar ba0581: OUTPUT: «True␤»
    <Zoffix_> m: say (1,).Seq ~~ [1,]
    <camelia> rakudo-moar ba0581: OUTPUT: «True␤»
    <Zoffix_> m: say (1,).Seq ~~ (1,).Seq
    <camelia> rakudo-moar ba0581: OUTPUT: «False␤»

IMO it should do the same thing as List.ACCEPTS while, perhaps, .cache'ing the 
Seq in the process

Reply via email to