getkey
getkey(collection, key, default)
Return the key matching argument key
if one exists in collection
, otherwise return default
.
Examples
julia> dict = ["A"=>1, "B"=>2, "C"=>3];
julia> getkey(dict, "A", "Sorry")
"A"
julia> getkey(dict, "D", "Sorry")
"Sorry"
See Also
append!, delete!, deleteat!, empty!, endof, filter, filter!, gc, get!, getkey, haskey, insert!, isempty, keys, map, map!, merge, merge!, pop!, prepend!, push!, reduce, resize!, shift!, splice!, unshift!, values,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.