Discussion both in (#12678)
https://github.com/nim-lang/Nim/pull/12600 and in https://forum.nim-lang.org/t/5499 indicates that everyone is happy/happier with ``pop``. This just renames the brand new ``take``s to ``pop`` and installs inline aliases/wrappers to preserve ``Table.take`` and ``TableRef.take``. Update apis.rst to try to maintain consistency of remove-and-return procs.
This commit is contained in:
parent
56a00da34a
commit
a88004114d
3 changed files with 44 additions and 33 deletions
|
|
@ -32,8 +32,8 @@
|
|||
- `system.writeFile` has been overloaded to also support `openarray[byte]`.
|
||||
- Added overloaded `strformat.fmt` macro that use specified characters as
|
||||
delimiter instead of '{' and '}'.
|
||||
- introduced new procs in `tables.nim`: `OrderedTable.take`, `CountTable.del`,
|
||||
`CountTable.take`
|
||||
- introduced new procs in `tables.nim`: `OrderedTable.pop`, `CountTable.del`,
|
||||
`CountTable.pop`, `Table.pop`
|
||||
|
||||
|
||||
- Added `sugar.outplace` for turning in-place algorithms like `sort` and `shuffle` into
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue