summary refs log tree commit diff stats
path: root/doc/apis.rst
diff options
context:
space:
mode:
authorc-blake <c-blake@users.noreply.github.com>2019-11-20 02:39:45 -0500
committerAndreas Rumpf <rumpf_a@web.de>2019-11-20 08:39:45 +0100
commita88004114d6bfbef31268c96f4d1fc871e70ab03 (patch)
tree64ef15b0b51c9cc42952b3ac69b5b6f0135fe6c1 /doc/apis.rst
parent56a00da34a2ec4dd9bebabb03d3adda720b93a55 (diff)
downloadNim-a88004114d6bfbef31268c96f4d1fc871e70ab03.tar.gz
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.
Diffstat (limited to 'doc/apis.rst')
-rw-r--r--doc/apis.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/apis.rst b/doc/apis.rst
index 277c1925b..d0327c76e 100644
--- a/doc/apis.rst
+++ b/doc/apis.rst
@@ -44,6 +44,7 @@ delete                  delete, del    del is supposed to be faster than
                                        delete, because it does not keep
                                        the order; delete keeps the order
 remove                  delete, del    inconsistent right now
+remove-and-return       pop            ``Table``/``TableRef`` alias to ``take``
 include                 incl
 exclude                 excl
 command                 cmd