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