next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: localDictionaries

localDictionaries -- get local dictionaries

Synopsis

Description

i1 : f := x -> y -> z -> 11;
i2 : d := localDictionaries ((f 22) 33)

o2 = {LocalDictionary{...1...}, LocalDictionary{...1...},
     ------------------------------------------------------------------------
     LocalDictionary{...2...}}

o2 : List
i3 : peek d

o3 = {LocalDictionary{"y" => y}, LocalDictionary{"x" => x},
                                                           
     ------------------------------------------------------------------------
     LocalDictionary{"d" => d}}
                     "f" => f
i4 : d#0#"y"

o4 = y

o4 : Symbol
i5 : value d#0#"y"

o5 = 33
i6 : peek localDictionaries()

o6 = {LocalDictionary{"d" => d}}
                      "f" => f

Ways to use localDictionaries :