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 04f5c91 commit eeeb970Copy full SHA for eeeb970
lib/std/system/defaults.nim
@@ -28,3 +28,5 @@ proc default*[T: tuple](x: typedesc[T]): T {.magic: DefaultTup.}
28
proc default*[I: Ordinal; T: HasDefault](x: typedesc[array[I, T]]): array[I, T] {.inline, noinit, nodestroy.} =
29
for i in low(array[I, T]) .. high(array[I, T]):
30
result[i] = default(T)
31
+
32
+template default*[T](x: typedesc[set[T]]): set[T] = {}
0 commit comments