Hacker News new | ask | show | jobs
by stabbles 2019 days ago

    julia> supertype(String) == supertype(SubString) == AbstractString
    true

If you insist just use f(s::AbstractString)