First element is always a keyword

This commit is contained in:
Marcus Kammer 2023-09-20 16:50:01 +02:00
parent aef04a1042
commit 444f55d990

View file

@ -49,8 +49,9 @@ A choice list is expected to satisfy the `choicep` predicate."
Returns T if all elements are either keywords or strings, otherwise NIL." Returns T if all elements are either keywords or strings, otherwise NIL."
(loop for elem in lst (loop for elem in lst
always (or (keywordp elem) always (and (keywordp (first lst))
(stringp elem)))) (or (keywordp elem)
(stringp elem)))))
(deftype choices () (deftype choices ()
"Represents a valid choices list. "Represents a valid choices list.