diff options
author | Daniel Santos <dacs.git@brilhante.top> | 2023-01-12 20:45:52 +0000 |
---|---|---|
committer | Daniel Santos <dacs.git@brilhante.top> | 2023-01-12 20:45:52 +0000 |
commit | b637e1330eea8081df8193665c5d6df71e182b1e (patch) | |
tree | 608d4509641ac9eda0bf8b8e19bee55b49bed4b1 | |
parent | 6b3f4e15c05e66b775862a1135d297b76ed4b568 (diff) | |
download | cl-math-b637e1330eea8081df8193665c5d6df71e182b1e.tar.gz |
Add explode-from-string
-rw-r--r-- | plus-inc.lisp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plus-inc.lisp b/plus-inc.lisp index 6e3dc72..9ad3173 100644 --- a/plus-inc.lisp +++ b/plus-inc.lisp @@ -8,6 +8,10 @@ number (reverse number))) +(defun explode-from-string (string) + "Given a string, it returns a list of the symbol of this string" + (loop for letter across string collect (intern (string letter)))) + (defun explode-to-symbol (number) "Given a number (which can have letters), it returns a list of the symbols of this number" (loop for letter across (prin1-to-string number) collect (intern (string letter)))) |