Skip to content

Commit e1ffe9b

Browse files
committed
emphasize that Whatever-currying is syntactic
1 parent c73b3cb commit e1ffe9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Whatever.pod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ This allow all these constructs to work:
5959
say @a[1..*]; # 2 3 4
6060
say @a[1..*-2]; # 2 3
6161
62+
The currying is purely syntactic.
63+
64+
my $x = *;
65+
$x + 2; # not a closure, dies because
66+
# it can't coerce $x to Numeric
67+
6268
=head1 Methods
6369
6470
=head2 ACCEPTS

0 commit comments

Comments
 (0)