Am I having a stroke or something? Is this not supposed to work (version 1.0):
julia> replace("ABC", "A"=>"a", "B"=>"b")
ERROR: MethodError: no method matching replace(::String, ::Pair{String,String}, ::Pair{String,String})
Closest candidates are:
replace(::AbstractString, ::Pair, ::Pair) at set.jl:487
replace(::Any, ::Pair...; count) at set.jl:428
replace(::Union{Function, Type}, ::Pair, ::Pair; count) at set.jl:486
...
Stacktrace:
[1] replace(::String, ::Pair{String,String}, ::Pair{String,String}) at ./set.jl:487
[2] top-level scope at none:0
It works for vectors:
julia> replace([1,2,3], 2=>20, 3=>30)
3-element Array{Int64,1}:
1
20
30