On 2020-01-12 16:05, Joseph Brenner wrote:
This can be done with an explicit, named subset if you like:subset StrOrInt where Str | Int; sub do_stuff ( StrOrInt $item ) { say "$item is a " ~ $item.^name; }
Hi Joseph, I like it. Now to figure where to put it so it is apparent when maintaining the code. I will play around with placement. Thank you! -T