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

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

Description

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

o1 = false
i2 : all(hashTable{1=>1, 2=>2, 3=>3}, (a,b) -> a == b)

o2 = true

See also

Ways to use this method:


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