Advertisement
Guest User

Untitled

a guest
Jun 13th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement