We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4531bb9 commit fa0e500Copy full SHA for fa0e500
src/pylib/Lib/os_impl/have_functions.nim
@@ -51,12 +51,18 @@ macro contains*(s: HaveFunc; fns: varargs[untyped]): bool =
51
## used for `{xxx, ...} <= s`
52
multiContainsImpl(s, fns)
53
54
-macro `>=`*(s: HaveFunc; fns: untyped): bool =
+macro issuperset*(s: HaveFunc; fns: untyped): bool =
55
56
57
58
+template `>=`*(s: HaveFunc, fns): bool =
59
+ bind issuperset
60
+ s.issuperset(fns)
61
+
62
# Not work for even `(x, ...) <= s`:
-template `<=`*(fns: untyped; s: untyped): bool = bind `>=`; s>=fns
63
+template `<=`*(fns: untyped; s: HaveFunc): bool =
64
65
66
67
const MS_WINDOWS = defined(windows)
68
template reset_set(name){.dirty.} =
0 commit comments