Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » hash tables » mapping over hash tables » any(HashTable,Function)
next | previous | forward | backward | up | index | toc

any(HashTable,Function) -- whether all key/value pairs in a hash table satisfy a specified condition

Description

i1 : any(hashTable{1=>5, 2=>4, 3=>3, 4=>2, 5=>1}, (a,b) -> a == b)

o1 = true
i2 : any(hashTable{1=>4, 2=>3, 3=>2, 4=>1}, (a,b) -> a == b)

o2 = false

See also

Ways to use this method:


The source of this document is in Macaulay2Doc/functions/any-doc.m2:80:0.