Macaulay2 » Documentation
Packages » Macaulay2Doc :: selectKeys
next | previous | forward | backward | up | index | toc

selectKeys -- select a part of a hash table by keys

Synopsis

Description

i1 : x = hashTable{(1, a), (2, b), (3, c), (4, d), (5, e)}

o1 = HashTable{1 => a}
               2 => b
               3 => c
               4 => d
               5 => e

o1 : HashTable
i2 : selectKeys(x, odd)

o2 = HashTable{1 => a}
               3 => c
               5 => e

o2 : HashTable
i3 : selectKeys(2, x, odd)

o3 = HashTable{1 => a}
               3 => c

o3 : HashTable

See also

Ways to use selectKeys:

For the programmer

The object selectKeys is a method function.