Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

What is Base.KeySet()?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795