Created
September 5, 2016 21:46
-
-
Save zoffixznet/4eac24fbd0074d6f9497bd7902168720 to your computer and use it in GitHub Desktop.
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 calculate-things ($n) { | |
say "$n is a prime" if $n.is-prime; | |
say "$n is an even number" if $n %% 2; | |
say "$n is pretty big" if $n > 1e6; | |
} | |
my @values = 1, 5, 42, 1e7.Int; | |
my $x = calculate-things @values.any; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment