I thought there would have been a simple answer for this somewhere on the internet but it seems like I'm having trouble finding a solution. I'm first of all wondering if there's a simple method or function for this:
e.g. ~~
or array.contains()
from Perl 5
It would also be nice to know how many different ways of achieving this result there are in Perl 6 as some might be better than others given the situation of the problem.