Skip to content

Instantly share code, notes, and snippets.

@aherve
Created November 23, 2016 14:56
Show Gist options
  • Select an option

  • Save aherve/4bec442700774ae5cb4ad8d116d599bc to your computer and use it in GitHub Desktop.

Select an option

Save aherve/4bec442700774ae5cb4ad8d116d599bc to your computer and use it in GitHub Desktop.
my_fancy_func = minus.(square, plus_one) # defining a new function
my_fancy_func.(3) #=> 5 = 3*3 - ( 3 + 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment