summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/core.md15
-rw-r--r--doc/macros.md8
2 files changed, 19 insertions, 4 deletions
diff --git a/doc/core.md b/doc/core.md
index fa3d678..7f13e9b 100644
--- a/doc/core.md
+++ b/doc/core.md
@@ -166,7 +166,8 @@ non-ASCII strings.
- [`partition-all`](#partition-all)
- [`partition-by`](#partition-by)
- [`persistent!`](#persistent)
-- [`pop!`](#pop)
+- [`pop`](#pop)
+- [`pop!`](#pop-1)
- [`random-sample`](#random-sample)
- [`realized?`](#realized)
- [`reduced?`](#reduced-1)
@@ -1721,6 +1722,18 @@ Returns a new, persistent version of the transient collection. The
transient collection cannot be used after this call, any such use will
raise an error.
+## `pop`
+Function signature:
+
+```
+(pop [coll])
+```
+
+If `coll` is a list returns a new list without the first
+item. If `coll` is a vector, returns a new vector without the last
+item. If the collection is empty, raises an error. Not the same as
+`next` or `butlast`.
+
## `pop!`
Function signature:
diff --git a/doc/macros.md b/doc/macros.md
index bac17f9..6e93a10 100644
--- a/doc/macros.md
+++ b/doc/macros.md
@@ -35,10 +35,12 @@ Function signature:
Function signature:
```
-(def ...)
+(def ([name initializer]) ([meta name initializer]))
```
-**Undocumented**
+Name binding macro similar to `local` but acts in terms of current
+namespace set with the `ns` macro, unless `:private` was passed before
+the binding name.
## `defmethod`
Function signature:
@@ -294,7 +296,7 @@ Function signature:
(ns name commentary requirements)
```
-**Undocumented**
+Namespace declaration macro.
## `time`
Function signature: