Skip to content

Commit

Permalink
Add missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
iamFIREcracker committed Jan 12, 2024
1 parent 11c4f2e commit 4d1e371
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,9 @@
(defun extract-integers (s)
(mapcar #'parse-integer (cl-ppcre:all-matches-as-strings "-?\\d+" s)))

(defun extract-symbols (s)
(mapcar #'read-from-string (cl-ppcre:all-matches-as-strings "\\w+" s)))
(defun extract-forms (s)
(with-input-from-string (stream s)
(uiop:slurp-stream-forms stream)))

;;;; Problems -----------------------------------------------------------------

Expand Down

0 comments on commit 4d1e371

Please sign in to comment.