Subject: | [LTA] Seq:D ~~ Seq:D uses Any.ACCEPTS |
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