pub fn addSet(self: *Self, other: Self) error
Increases the all key counts by given multiset.
self: *Self
other: Self
756 757 758 759 760 761
pub fn addSet(self: *Self, other: Self) error{Overflow}!void { inline for (@typeInfo(E).@"enum".field_values) |field_value| { const key = @as(E, @fromBackingInt(@intCast(field_value))); try self.add(key, other.getCount(key)); } }
Increases the all key counts by given multiset.