<?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>scanKeys -- apply a function to each key in a hash table or database</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_scan__Lines.html">next</a> | <a href="_scan_lp__Z__Z_cm__Function_rp.html">previous</a> | <a href="_scan__Lines.html">forward</a> | <a href="_scan_lp__Z__Z_cm__Function_rp.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>scanKeys -- apply a function to each key in a hash table or database</h1> <div class="single"><h2>Description</h2> <div><tt>scanKeys(x,f)</tt> -- apply the function <tt>f</tt> to each key used in the hash table or database <tt>x</tt>.<p/> This function requires an immutable hash table. To scan the keys in a mutable hash table, use <tt>scan(keys x, f)</tt>.</div> </div> <div class="waystouse"><h2>Ways to use <tt>scanKeys</tt> :</h2> <ul><li>scanKeys(Database,Function)</li> <li>scanKeys(HashTable,Function)</li> </ul> </div> </div> </body> </html>