I'm reviewing some code and am VERY new to Julia. The following pseudo code was provided to me in Julia and it doesn't appear to follow the function syntax that I was expecting.
function AddToDB{K<:Int,V}(a::Associative{K,V}, v::V) k = rand(1:typemax(K)) while haskey(a, k) k = rand(1:typemax(K)) end merge!(a,{k=>v}) end Is this a typo? If not can you please explain what is being done here. Thanks in advance, Pat