Different dispatch for positional/keyword arguments

Here is a simple example:

function f(a, b::Int)
    println("b is an Int")
end

function f(a, b::Float64)
    println("b is a Float64")
end

function f(a; b)
    f(a,b)
end

f(1, b = 1)
2 Likes