# File lib/multiset.rb, line 27
def
cardinality
@hash
.
inject
(
0
) {
|
s
, (
e
,
m
)
|
s
+=
m
}
end