heapqueue.nim: Add toHeapQueue proc (#15459)
Similar to: - `critbits.toCritBitTree` - `deques.toDeque` - `sets.toHashSet` - `tables.toTable` Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
d48b356e49
commit
0a05176057
2 changed files with 22 additions and 0 deletions
|
|
@ -201,6 +201,10 @@
|
|||
|
||||
- Add `readLines(p: Process)` to `osproc` module for `startProcess` convenience.
|
||||
|
||||
- Added `heapqueue.toHeapQueue`, which creates a HeapQueue from an openArray.
|
||||
The usage is similar to procs such as `sets.toHashSet` and `tables.toTable`.
|
||||
Previously, it was necessary to create an empty HeapQueue and add items
|
||||
manually.
|
||||
- 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue