<?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>Dictionary -- the class of all dictionaries</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_dictionary.html">next</a> | <a href="_diagonal__Matrix_lp__Ring_cm__Z__Z_cm__Z__Z_cm__List_rp.html">previous</a> | <a href="_dictionary.html">forward</a> | <a href="_diagonal__Matrix_lp__Ring_cm__Z__Z_cm__Z__Z_cm__List_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>Dictionary -- the class of all dictionaries</h1> <div class="single"><h2>Description</h2> <div>A dictionary is a special sort of hash table whose keys are the strings, and whose values are the corresponding symbols.<table class="examples"><tr><td><pre>i1 : Core.Dictionary # "sin" o1 = sin o1 : Symbol</pre> </td></tr> <tr><td><pre>i2 : Core.Dictionary #? "sin" o2 = true</pre> </td></tr> </table> </div> </div> <div class="waystouse"><h2>Types of dictionary :</h2> <ul><li><span><a href="___Global__Dictionary.html" title="the class of all global dictionaries">GlobalDictionary</a> -- the class of all global dictionaries</span></li> <li><span><a href="___Local__Dictionary.html" title="the class of all local dictionaries">LocalDictionary</a> -- the class of all local dictionaries</span></li> </ul> <h2>Methods that use a dictionary :</h2> <ul><li><span><a href="_length_lp__Dictionary_rp.html" title="length of a dictionary">length(Dictionary)</a> -- length of a dictionary</span></li> <li><span>listSymbols(Dictionary), see <span><a href="_list__Symbols.html" title="compact display of symbols and their values">listSymbols</a> -- compact display of symbols and their values</span></span></li> <li><span>localDictionaries(Dictionary), see <span><a href="_local__Dictionaries.html" title="get local dictionaries">localDictionaries</a> -- get local dictionaries</span></span></li> <li><span>package(Dictionary), see <span><a href="_package.html" title="get containing package">package</a> -- get containing package</span></span></li> </ul> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="___Dictionary.html" title="the class of all dictionaries">Dictionary</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor class <a href="___Thing.html" title="the class of all things">Thing</a>.</p> </div> </div> </body> </html>