I have a special function that takes a list, each member of the list must satisfy multiple requirements. How do I set this up in a perl6 function?
sub specialFunc(List $x) {};
- $x is a list # easy, List $x, but what about the following:
- each member of $x is numeric
- each member of $x is positive
- each member of $x is greater than 7
- each member of $x is odd number
- each member of $x is either the square or the cube of an even number plus 1;