Skip to content

Instantly share code, notes, and snippets.

@tadzik

tadzik/stuff.pl Secret

Last active September 12, 2019 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/573f55b68149d0af1e31b4b4b64f3230 to your computer and use it in GitHub Desktop.
Save tadzik/573f55b68149d0af1e31b4b4b64f3230 to your computer and use it in GitHub Desktop.
type checking not up to it?
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