Option 1
Julia’s current source indicates that the keys and vals of the object Dict()are stored as Arrayobjects that are ordered, so you can simply use values()it keys()separately, as in the wording of the question. But it is dangerous to rely on hood implementation details that are not documented, as they are subject to change without notice.
Option 2
An OrderedDictfrom the package DataStructures(along with the functions values()and keys()) is probably the easiest and safest way to be sure of sequential ordering. This is normal if you do not need an order.
Option 3
DataStructures, Julia, , .
Mydict = Dict("a" => 1, "b" => 2, "c" => 1)
a = [(key, val) for (key, val) in Mydict]
zip(), , .
, , :
Keys = [key for (key, val) in Mydict]
Values = [val for (key, val) in Mydict]
a[idx][1] idx Keys, .