


![[top]](top.gif)
Tally + Tally -- union of tallies
Synopsis:
x + y -- produces the union of two tallies.
One of the arguments may be a Set.
i1 : x = tally {a,a,a,b,b,c}
o1 = Tally{a => 3}
b => 2
c => 1
o1 : Tally |
i2 : y = tally {b,c,c,d,d,d}
o2 = Tally{b => 1}
c => 2
d => 3
o2 : Tally |
i3 : x + y
o3 = Tally{a => 3}
b => 3
c => 3
d => 3
o3 : Tally |
See also:
Tally -- the class of all tally results
tally -- tally the elements of a list
Code:
-- ../../../Macaulay2/m2/set.m2:23
Tally + Tally := Tally => (x,y) -> merge(x,y,plus)



![[top]](top.gif)