Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # import typetraits
- #
- # type
- # unionTable*[T] = ref object
- # parents: seq[T]
- # Iterable = concept x
- # high x is decltype x
- # low x is decltype x
- # decltype x + 1 is x
- # proc newUnionTable*[T](args: openarray[T]): unionTable[T] =
- # for arg in args:
- # result.add arg
- #
- #
- # proc newUnionTable*[T](maximum: T): unionTable[T] =
- # for arg in high args .. low args: result.parents.add arg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement