Advertisement
cwchen

[Perl 6] Using first-class objects.

Nov 28th, 2017
1,333
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. my $f = sub add-one($n) {
  2.     $n + 1;
  3. }
  4.  
  5. $f(3) == 4 or die "Wrong value";
Advertisement
RAW Paste Data Copied
Advertisement