Pasted
Archive
[Perl 6] The syntactic sugar for function object.
cwchen
|
PRO
|
11/29/17 02:07:23 AM UTC
|
0 ⭐
|
11886 👁️
|
Never ⏰
|
[]
Perl 6
|
0 B
|
None
|
0 👍
/
0 👎
Raw
Download
Clone
Embed
Print
View
Choose
Raw
Download
Clone
Embed
Print
View
my $f = -> $x { $x + 1; }; $f(3) == 4 or die "Wrong value";
Comments
01/01/70 12:00:00 AM UTC
Plain Text
|
0 B
|
👍
/
👎
01/01/70 12:00:00 AM UTC
Plain Text
|
0 B
|
👍
/
👎
Comments
0 B
|👍
/👎
0 B
|👍
/👎