daily pastebin goal
36%
SHARE
TWEET

[Perl 6] References to subroutines

cwchen Nov 28th, 2017 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sub square($n) {
  2.     $n * $n;
  3. }
  4.  
  5. my $f = □
  6. $f(3) == 9 or die "Wrong value";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top