Skip to content

Instantly share code, notes, and snippets.

@eibrahim
Created February 2, 2016 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eibrahim/040170af0356f0e89c71 to your computer and use it in GitHub Desktop.
Save eibrahim/040170af0356f0e89c71 to your computer and use it in GitHub Desktop.
Multiplier - a function returning a function
def multiplier x do &(&1*x) end
def multiplier2 x do
fn(y) ->
y * x
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment