Help for this page

Select Code to Download


  1. or download this
    my $f = sub {my $x = shift; sub {$x ** 2}->()};
    
  2. or download this
    my $f = sub { my $x = shift; $x**2 }
    
  3. or download this
    my $f = lambda $x => sub { $x**2 }