Check for type of argument lst
This commit is contained in:
parent
a3f52f2aec
commit
45ac57ecc1
1 changed files with 2 additions and 0 deletions
|
@ -170,6 +170,8 @@ Example 2 (Key-Grouped List):
|
|||
Returns:
|
||||
A list of sublists, each starting with a keyword."
|
||||
;; Initialize result and current-list
|
||||
(unless (or (choicesp lst) (questionp lst))
|
||||
(error "Invalid type for LST. Expected a 'choices' or 'question'."))
|
||||
(let ((result '())
|
||||
(current-list '()))
|
||||
;; Loop through each item in plist
|
||||
|
|
Loading…
Add table
Reference in a new issue