next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > hash tables > remove

remove -- remove an entry from a hash table

Description

remove(x,k) -- removes the entry stored in the hash table x under the key k.

i1 : x = new MutableHashTable from {a => 1, b => 2}

o1 = MutableHashTable{...2...}

o1 : MutableHashTable
i2 : remove(x,a)
i3 : x

o3 = MutableHashTable{...1...}

o3 : MutableHashTable

Ways to use remove :