I want to do something like this in raku, the idea is that while I'm in a given
block I want to match a wildcard to a variable to use it inside the condition, is it possible?
given @my-array {
when @[*element] {
say *element;
}
when @[] {
say "nothing :(";
}
}