daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # import typetraits
  2. #
  3. # type
  4. #   unionTable*[T] = ref object
  5. #     parents: seq[T]
  6. #   Iterable = concept x
  7. #     high x is decltype x
  8. #     low x is decltype x
  9. #     decltype x + 1 is x
  10. # proc newUnionTable*[T](args: openarray[T]): unionTable[T] =
  11. #   for arg in args:
  12. #     result.add arg
  13. #
  14. #
  15. # proc newUnionTable*[T](maximum: T): unionTable[T] =
  16. #   for arg in high args .. low args: result.parents.add arg
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top