getkey(collection, key, default)

Return the key matching argument key if one exists in collection, otherwise return default.


julia> dict = ["A"=>1, "B"=>2, "C"=>3];

julia> getkey(dict, "A", "Sorry")

julia> getkey(dict, "D", "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.

*Required Field

Checking you are not a robot: