next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: select(HashTable,Function)

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