iterating over a dictionary yields (key, value) tuples: julia> proportionmap([1,1,2,2,3]) [2=>0.4,3=>0.2,1=>0.4]
julia> for (k,v) in proportionmap([1,1,2,2,3])
println(k)
end
2
3
1
julia>
—James
On Sunday, May 18, 2014 7:26:39 PM UTC-5, Jason Solack wrote:
>
> Hello everyone!
>
> I'm iterating over a dictionary returned by proportionmap and i'm
> wondering how i can tell what key the current iteration is referring to.
>
> Thank you!
>
> Jason
>
