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

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

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