R
Ronald Fischer
Let h be a Hash. Calculating the arrays
k=3Dh.keys
v=3Dh.values
under the assumption that h is not modified
in between, is it guaranteed that for all
indices n
h[k[n]]=3D=3Dv[n]
i.e. that Hash#values delivers the values
in the same order than Hash#keys delivers
the respective keys?
When playing around, I found this always
the case, but can I rely on it?
Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162
k=3Dh.keys
v=3Dh.values
under the assumption that h is not modified
in between, is it guaranteed that for all
indices n
h[k[n]]=3D=3Dv[n]
i.e. that Hash#values delivers the values
in the same order than Hash#keys delivers
the respective keys?
When playing around, I found this always
the case, but can I rely on it?
Ronald
--=20
Ronald Fischer <[email protected]>
Phone: +49-89-452133-162