Skip to content

Commit

Permalink
Add one for AbstractString
Browse files Browse the repository at this point in the history
From discussion in JuliaLang#19536
  • Loading branch information
bdeonovic authored Dec 9, 2016
1 parent ae1b30b commit 8e9ed8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ julia> "Hello " * "world"
(.*){T<:AbstractString}(v::Vector{T},s::AbstractString) = [i*s for i in v]
(.*){T<:AbstractString}(s::AbstractString,v::Vector{T}) = [s*i for i in v]

one(s::AbstractString) = ""

length(s::DirectIndexString) = endof(s)

"""
Expand Down

0 comments on commit 8e9ed8d

Please sign in to comment.