Macaulay2 » Documentation
Packages » Macaulay2Doc :: findSynonyms(Symbol)
next | previous | forward | backward | up | index | toc

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

../../../../../Macaulay2/m2/document.m2:801:25-805:16: --source code:
findSynonyms Symbol := x -> (
    result := {};
    scan(dictionaryPath, dict -> scan(pairs dict, (name, symb) ->
            if x === symb and getGlobalSymbol name === symb then result = append(result, name)));
    sort unique result)

See also

Ways to use this method: