First element is always a keyword
This commit is contained in:
parent
aef04a1042
commit
444f55d990
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue