multidispatch Questions

2

Solved

I have a type hierarchy constructed with perl6's subset command and some multi subs specialized on these type. How to give the highest precedence to the sub specialized by the most narrow subtype w...
Hegira asked 23/1, 2019 at 10:24

1

I'm playing with this little thing where a set can act as its complement by flipping around the tests. In order to make that work, I create special versions of the membership operators. class Comp...
Curtal asked 16/2, 2018 at 1:50

3

Solved

Consider this program where I construct an Array in the argument list. Although there's a signature that accepts an Array, this calls the one that accepts a List: foo( [ 1, 2, 3 ] ); multi foo ( ...
Gae asked 19/6, 2017 at 2:24
1

© 2022 - 2024 — McMap. All rights reserved.