Created
August 4, 2017 07:30
-
-
Save mmurooka/b45ace471ecb423fafe7a89b7965c938 to your computer and use it in GitHub Desktop.
convert array to string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun convert-array-to-string | |
(a) | |
(let* ((ret "") | |
) | |
(dotimes (i (length a)) | |
(cond ((= i 0) | |
(setq ret (format nil "~a" (elt a i))) | |
) | |
(t | |
(setq ret (format nil "~a, ~a" ret (elt a i))) | |
)) | |
) | |
ret | |
)) | |
;; (convert-array-to-string (float-vector 1 2 3)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment