IsProperSubsetOfElements is like IsSubsetOfElements, but checks for proper subset.
(eq any, sub, super any)
| 204 | |
| 205 | // IsProperSubsetOfElements is like IsSubsetOfElements, but checks for proper subset. |
| 206 | func IsProperSubsetOfElements(eq any, sub, super any) bool { |
| 207 | return IsSubsetOfElements(eq, sub, super) && !IsSubsetOfElements(eq, super, sub) |
| 208 | } |
| 209 | |
| 210 | // SameElements returns true iff IsSubsetOfElements(eq, xs, ys) returns true and IsSubsetOfElements(eq, ys, xs) returns true and false otherwise. |
| 211 | func SameElements(eq any, xs, ys any) bool { |