diff options
author | Teddy Wing | 2021-02-27 17:03:21 +0100 |
---|---|---|
committer | Teddy Wing | 2021-02-27 17:03:21 +0100 |
commit | e7cb0b8256eefa8dfa07cfee2f4335bf6a414c72 (patch) | |
tree | 50897bd1048fa806673abf3c5c3b8e16ff189ab0 | |
parent | 20cbc406fd3e162ff3ff44ddd779a406fceea0f7 (diff) | |
download | extreload-e7cb0b8256eefa8dfa07cfee2f4335bf6a414c72.tar.bz2 |
macro: Add documentation
-rw-r--r-- | l/src/macro.lisp | 4 |
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) |