Add arity typetrait
This commit is contained in:
parent
6a04757e6d
commit
73aba23a49
2 changed files with 6 additions and 0 deletions
|
|
@ -13,3 +13,5 @@
|
|||
proc name*(t: typedesc): string {.magic: "TypeTrait".}
|
||||
## Returns the name of the given type
|
||||
|
||||
proc arity*(t: typedesc): int {.magic: "TypeTrait".}
|
||||
## Returns the arity of the given type
|
||||
Loading…
Add table
Add a link
Reference in a new issue