next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: findSynonyms(Symbol)

findSynonyms(Symbol) -- find synonyms of symbols

Synopsis

Description

i1 : findSynonyms symbol res

o1 = {Core$res, Core$resolution, res, resolution}

o1 : List
i2 : symbol res === symbol resolution

o2 = true
i3 : res === resolution

o3 = true
i4 : res

o4 = resolution

o4 : MethodFunctionWithOptions

Code

/home/dan/src/M2/M2/Macaulay2/m2/packages.m2:368:26-371:18: --source code:
findSynonyms Symbol := x -> (
     r := {};
     scan(dictionaryPath, d -> scan(pairs d, (nam,sym) -> if x === sym and getGlobalSymbol nam === sym then r = append(r,nam)));
     sort unique r)

See also