intsets.nim: Add toIntSet proc (#15460)
Similar to: - `critbits.toCritBitTree` - `deques.toDeque` - `sets.toHashSet` - `tables.toTable`
This commit is contained in:
parent
7ef22bf912
commit
d48b356e49
2 changed files with 30 additions and 3 deletions
|
|
@ -201,6 +201,11 @@
|
|||
|
||||
- Add `readLines(p: Process)` to `osproc` module for `startProcess` convenience.
|
||||
|
||||
- Added `intsets.toIntSet`, which creates an IntSet from an openArray. The usage
|
||||
is similar to procs such as `sets.toHashSet` and `tables.toTable`. Previously,
|
||||
it was necessary to create an empty IntSet and add items manually.
|
||||
|
||||
|
||||
## Language changes
|
||||
|
||||
- The `=destroy` hook no longer has to reset its target, as the compiler now automatically inserts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue