summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorMark Flamer <mflamer@vectorworks.net>2013-09-02 18:20:00 -0700
committerMark Flamer <mflamer@vectorworks.net>2013-09-02 18:20:00 -0700
commit73aba23a49c3fd6b14cc7b2688224d8ac68a1acf (patch)
tree47dc84b8f5d02ee1a32b887f943982975add79bd /lib/pure
parent6a04757e6d14b5b59004ef03539dba4453352fe5 (diff)
downloadNim-73aba23a49c3fd6b14cc7b2688224d8ac68a1acf.tar.gz
Add arity typetrait
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/typetraits.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/typetraits.nim b/lib/pure/typetraits.nim
index 45b79dcb6..e7bd363cf 100644
--- a/lib/pure/typetraits.nim
+++ b/lib/pure/typetraits.nim
@@ -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
\ No newline at end of file