Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » hash tables » keys
next | previous | forward | backward | up | index | toc

keys -- keys used in a hash table, dictionary, or database

Description

i1 : x = new HashTable from {a => 1, b => 2}

o1 = HashTable{a => 1}
               b => 2

o1 : HashTable
i2 : keys x

o2 = {a, b}

o2 : List

See also

Ways to use keys:

  • keys(Database)
  • keys(Dictionary)
  • keys(HashTable)

For the programmer

The object keys is a compiled function.


The source of this document is in Macaulay2Doc/ov_hashtables.m2:369:0.