<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>removeHook(HashTable,Thing,Function) -- remove a hook function from an object</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_remove__Hook_lp__Symbol_cm__Function_rp.html">next</a> | <a href="_remove__Hook.html">previous</a> | <a href="_remove__Hook_lp__Symbol_cm__Function_rp.html">forward</a> | <a href="_remove__Hook.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>removeHook(HashTable,Thing,Function) -- remove a hook function from an object</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>removeHook(obj,key,hook)</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_remove__Hook.html" title="remove a hook function from an object">removeHook</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>obj</tt>, <span>a <a href="___Hash__Table.html">hash table</a></span></span></li> <li><span><tt>key</tt>, <span>a <a href="___Thing.html">thing</a></span></span></li> <li><span><tt>hook</tt>, <span>a <a href="___Function.html">function</a></span></span></li> </ul> </div> </li> <li><div class="single">Consequences:<ul><li>the function <tt>hook</tt> is removed from the list of hooks stored in <tt>obj#key</tt> or <tt>obj.cache#key</tt></li> </ul> </div> </li> </ul> </div> <div><!--empty documentation body--></div> <div class="waystouse"><div class="single"><h2>Code</h2> <pre>../../m2/methods.m2:490:56-490:112: --source code: removeHook(HashTable,Thing,Function) := (obj,key,hook) -> (c := obj.cache; if c#?key then c#key = delete(c#key,hook)) ../../m2/methods.m2:486:63-486:108: --source code: removeHook(MutableHashTable,Thing,Function) := (obj,key,hook) -> if obj#?key then obj#key = delete(obj#key,hook)</pre> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_run__Hooks_lp__Hash__Table_cm__Thing_cm__Thing_rp.html" title="run the hook functions stored in an object">runHooks(HashTable,Thing,Thing)</a> -- run the hook functions stored in an object</span></li> <li><span><a href="_remove__Hook_lp__Hash__Table_cm__Thing_cm__Function_rp.html" title="remove a hook function from an object">removeHook(HashTable,Thing,Function)</a> -- remove a hook function from an object</span></li> </ul> </div> </div> </body> </html>