intsets.nim 606 B

12345678910111213141516171819202122232425
  1. #
  2. #
  3. # Nim's Runtime Library
  4. # (c) Copyright 2012 Andreas Rumpf
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. ## Deprecated by the generic `PackedSet` for ordinal sparse sets.
  10. ## **See also:**
  11. ## * `Ordinal packed sets module <packedsets.html>`_ for more general packed sets
  12. import std/private/since
  13. import std/packedsets
  14. export packedsets
  15. type
  16. IntSet* = PackedSet[int]
  17. proc toIntSet*(x: openArray[int]): IntSet {.since: (1, 3), inline.} = toPackedSet[int](x)
  18. proc initIntSet*(): IntSet {.inline.} = initPackedSet[int]()