Macaulay2 » Documentation
Packages » Macaulay2Doc :: select(HashTable,Function)
next | previous | forward | backward | up | index | toc

select(HashTable,Function) -- select part of a hash table

Synopsis

Description

The hash table v should be immutable: to scan the values in a mutable hash table, use scan(values x, f).
i1 : x = new HashTable from { x => 1, y => 2, z => 3 }

o1 = HashTable{x => 1}
               y => 2
               z => 3

o1 : HashTable
i2 : select(x,odd)

o2 = HashTable{x => 1}
               z => 3

o2 : HashTable

See also

Ways to use this method: