Skip to content

Instantly share code, notes, and snippets.

@koolquark
Created June 21, 2019 15:51
Show Gist options
  • Save koolquark/a06096341e8e1034311cfa0be4443020 to your computer and use it in GitHub Desktop.
Save koolquark/a06096341e8e1034311cfa0be4443020 to your computer and use it in GitHub Desktop.
Matching two parameter values at function head
defmodule FnEx do
def m( %{ :a => a } , a ) do
IO.puts "Hello"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment