Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created December 18, 2018 11:13
Show Gist options
  • Save PrateekKumarSingh/5f1d174d4a9f93ba0ca0a869a9ad50f4 to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/5f1d174d4a9f93ba0ca0a869a9ad50f4 to your computer and use it in GitHub Desktop.
$mul = {param($num1,$num2) $num1*$num2}
# calling the anonymous function with named parameters
& $mul -num1 2 -num2 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment