I can quickly create a dictionary in julia via:
julia> d = ['a' => 1, 'b' => 2 ]
Dict{Char,Int64} with 2 entries:
'b' => 2
'a' => 1
Now, I want the backslash character as a key in my dictionary. This results in an error because it will escape the '. Instead, I try to escape the \ with another. This doesn't cause an error, but doens't give me the correct result either.
julia> d = ['\\' => 3]
Dict{Char,Int64} with 1 entry:
'\\' => 3
What am I missing?
WARNING: deprecated syntax "[a=>b, ...]". Use "Dict(a=>b, ...)" instead.- rickhg12hsDictcomprehensions are not deprecated. - rickhg12hs