Coverage report: /home/ellis/.stash/quicklisp/dists/quicklisp/software/alexandria-20241012-git/alexandria-2/control-flow.lisp
Kind | Covered | All | % |
expression | 0 | 40 | 0.0 |
branch | 0 | 2 | 0.0 |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
(in-package :alexandria-2)
3
(defun line-up-iter (thread-first-p acc forms)
4
"Iterative implementation for `thread-iter'.
6
The THREAD-FIRST-P decides where to thread the FORMS, accumulating in ACC."
8
(line-up-iter thread-first-p
9
(let ((form (car forms)))
12
(apply #'list (car form) acc (cdr form))
13
(append form (cons acc nil)))
18
(defmacro line-up-first (&rest forms)
19
"Lines up FORMS elements as the first argument of their successor.
32
Note how the single '/ got converted into a list before
34
(line-up-iter t (car forms) (cdr forms)))
36
(defmacro line-up-last (&rest forms)
37
"Lines up FORMS elements as the last argument of their successor.
50
Note how the single '/ got converted into a list before
52
(line-up-iter nil (car forms) (cdr forms)))