pub fn removeSet(self: *Self, other: Self) void
Decreases the all key counts by given multiset. If the given multiset has more key counts than this, then that key will have a key count of zero.
self: *Self
other: Self
766 767 768 769 770 771
pub fn removeSet(self: *Self, other: Self) void { inline for (@typeInfo(E).@"enum".field_values) |field_value| { const key = @as(E, @fromBackingInt(@intCast(field_value))); self.remove(key, other.getCount(key)); } }
Decreases the all key counts by given multiset. If the given multiset has more key counts than this, then that key will have a key count of zero.