next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: removeHook(HashTable,Thing,Function)

removeHook(HashTable,Thing,Function) -- remove a hook function from an object

Synopsis

Code

/home/dan/src/M2/M2/Macaulay2/m2/methods.m2:517:56-517:112: --source code:
removeHook(HashTable,Thing,Function) := (obj,key,hook) -> (c := obj.cache; if c#?key then c#key = delete(c#key,hook))
/home/dan/src/M2/M2/Macaulay2/m2/methods.m2:513:63-513:108: --source code:
removeHook(MutableHashTable,Thing,Function) := (obj,key,hook) -> if obj#?key then obj#key = delete(obj#key,hook)

See also