delete!

delete!(collection, key)

Delete the mapping for the given key in a collection, and return the collection.

Examples

julia> dict = {"A"=>1, "B"=>2, "C"=>3, "D"=>4};

julia> delete!(dict,"A");

julia> dict
Dict{Any,Any} with 3 entries:
 "B" => 2
 "C" => 3
 "D" => 4

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
Details

Checking you are not a robot: