pub fn supersetOf(self: Self, other: Self) bool
Returns true iff all key counts greater than or equal to the given multiset.
self: Self
other: Self
799 800 801 802 803 804 805 806 807
pub fn supersetOf(self: Self, other: Self) bool { inline for (@typeInfo(E).@"enum".field_values) |field_value| { const key = @as(E, @fromBackingInt(@intCast(field_value))); if (self.getCount(key) < other.getCount(key)) { return false; } } return true; }
Returns true iff all key counts greater than or equal to the given multiset.