Skip to content

Instantly share code, notes, and snippets.

@bdenckla
Created October 20, 2011 00:00
Show Gist options
  • Save bdenckla/1300040 to your computer and use it in GitHub Desktop.
Save bdenckla/1300040 to your computer and use it in GitHub Desktop.
Perl function implementing partial function application
sub Pa # Partially Apply
{
my ( $f, @a ) = @_;
sub { $f->( @a, @_ ) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment