When I use keys()
the resulting data structure is a Base.KeySet()
. Can someone elaborate on what that is? I searched the documentation, but I couldn’t find it.
character_inventory = Dict{String,Int32}("Sword" => 100, "Staff" => 50)
character_inventory_keys = keys(character_inventory)
println(typeof(character_inventory_keys))
Output:
Base.KeySet{String,Dict{String,Int32}}
4 posts - 3 participants