aboutsummaryrefslogtreecommitdiffstats
path: root/l/src
diff options
context:
space:
mode:
authorTeddy Wing2021-02-27 17:03:21 +0100
committerTeddy Wing2021-02-27 17:03:21 +0100
commite7cb0b8256eefa8dfa07cfee2f4335bf6a414c72 (patch)
tree50897bd1048fa806673abf3c5c3b8e16ff189ab0 /l/src
parent20cbc406fd3e162ff3ff44ddd779a406fceea0f7 (diff)
downloadextreload-e7cb0b8256eefa8dfa07cfee2f4335bf6a414c72.tar.bz2
macro: Add documentation
Diffstat (limited to 'l/src')
-rw-r--r--l/src/macro.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/l/src/macro.lisp b/l/src/macro.lisp
index 283cf9f..18c7d21 100644
--- a/l/src/macro.lisp
+++ b/l/src/macro.lisp
@@ -1,9 +1,13 @@
(in-package :extreload)
(defmacro filter (predicate list-form)
+ "Returns a sequence that only includes elements of `list-form` that satisfy
+the test of `predicate`."
`(remove-if-not ,predicate ,list-form))
(defmacro with-websocket-connection ((client) &body body)
+ "Open a WebSocket connection on `client` and run `body` forms. The connection
+is automatically closed at the end of execution."
`(progn
(wsd:start-connection ,client)
(unwind-protect (progn ,@body)