Skip to content

Instantly share code, notes, and snippets.

@mmurooka
Created August 4, 2017 07:30
Show Gist options
  • Save mmurooka/b45ace471ecb423fafe7a89b7965c938 to your computer and use it in GitHub Desktop.
Save mmurooka/b45ace471ecb423fafe7a89b7965c938 to your computer and use it in GitHub Desktop.
convert array to string
(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