-
-
Save tadzik/573f55b68149d0af1e31b4b4b64f3230 to your computer and use it in GitHub Desktop.
type checking not up to it?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub grep-somethings( | |
Numeric @things --> Positional[Numeric] | |
) { | |
return @things.grep(* > 5); | |
} | |
my Numeric @somethings = 1, 5, 25; | |
grep-somethings(@somethings); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment