Skip to content

Instantly share code, notes, and snippets.

@abelsiqueira
Created August 9, 2015 22:18
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 abelsiqueira/acdfd61fcf967ce5ebe8 to your computer and use it in GitHub Desktop.
Save abelsiqueira/acdfd61fcf967ce5ebe8 to your computer and use it in GitHub Desktop.
"1st foo: x::Int->x+1"
function foo(x::Int)
return x+1
end
"2nd foo: x::Float64->x/2"
function foo(x::Float64)
return x/2
end
function bar(x::Int)
return x+1
end
function bar(x::Float64)
return x/2
end
"1st bar: x::Int->x+1"
bar
"2nd bar: x::Float64->x/2"
bar
# `@doc foo` shows both
# `@doc bar` shows only the 2nd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment