Would it not make sense to define replace for Int's and ranges like this?
replace(s::String, index::Int, r) = string(s[1:index-1]) * string(r) *
string(s[index+1:end])
replace(s::String, range::UnitRange{Int}, r) = string(s[1:first(range)-1]) *
string(r) * string(s[last(range)+1:end])
- [julia-users] Re: Not fun JVaz
- Re: [julia-users] Re: Not fun Stefan Karpinski
- [julia-users] Re: Not fun Michael Hatherly
- Re: [julia-users] Re: Not fun Stefan Karpinski
- Re: [julia-users] Re: Not fun Michael Hatherly
- Re: [julia-users] Re: Not fun Daniel Høegh
- Re: [julia-users] Re: Not fun John Myles White
- Re: [julia-users] Re: Not fun Stefan Karpinski
- Re: [julia-users] Re: Not f... Daniel Høegh
- Re: [julia-users] Re: Not f... John Myles White
- Re: [julia-users] Not fun John Myles White
- Re: [julia-users] Not fun Stefan Karpinski
- Re: [julia-users] Not fun John Myles White
- Re: [julia-users] Not fun Johan Sigfrids
- Re: [julia-users] Not fun Stefan Karpinski
- [julia-users] Re: Not fun David P. Sanders
