Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 218 Bytes
use v6;
use Test;
use experimental :macros;
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