In [1]:
# Multiple Dispatch
function f(x::Int)
    x * 3
end

function f(x::AbstractFloat)
    x * 2
end
Out[1]:
f (generic function with 2 methods)
In [2]:
@show f(3)
f(3) = 9
Out[2]:
9
In [3]:
@show f(3.0)
f(3.0) = 6.0
Out[3]:
6.0