Check for type of argument lst

This commit is contained in:
Marcus Kammer 2023-09-19 13:02:53 +02:00
parent a3f52f2aec
commit 45ac57ecc1

View file

@ -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