Pasted
Archive
[Perl 6] Subroutine with type info
cwchen
|
PRO
|
11/16/17 03:06:16 AM UTC
|
0 ⭐
|
10619 👁️
|
Never ⏰
|
[]
Perl 6
|
0 B
|
None
|
0 👍
/
0 👎
Raw
Download
Clone
Embed
Print
View
Choose
Raw
Download
Clone
Embed
Print
View
sub add-one(Int $n) of Int { $n + 1; } add-one(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
|👍
/👎