Skip to content

Instantly share code, notes, and snippets.

@carlcortright
Created October 22, 2017 18:17
Show Gist options
  • Save carlcortright/8b1ab73a22c3528bf1cad61e5ed7b633 to your computer and use it in GitHub Desktop.
Save carlcortright/8b1ab73a22c3528bf1cad61e5ed7b633 to your computer and use it in GitHub Desktop.
# == defined for different arguments
function ==(a::Int, b::String)
isequal(string(a), b)
end
function ==(a::String, b::Int)
isequal(Int(a), b)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment