Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 192 Bytes
use v6;
use Test;
plan 1;
# L<S06/Macros>
macro postfix:<!> (Int $n) {
my $factorial = [*] 1..$n;
return "$factorial + 0";
}
is 3!, 6, "macro postfix:<!> works";
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.