Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » hash tables » HashTable » VirtualTally » VirtualTally _ Thing
next | previous | forward | backward | up | index | toc

VirtualTally _ Thing -- get a count from a tally

Description

i1 : t = tally apply(1..10000, i -> # factor i)

o1 = Tally{0 => 1   }
           1 => 1280
           2 => 4097
           3 => 3695
           4 => 894
           5 => 33

o1 : Tally
i2 : t_5

o2 = 33
i3 : t_6

o3 = 0

See also

Ways to use this method:


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