projects
/
kmrcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r4233: Automatic commit for debian_version_1_27-1
[kmrcl.git]
/
strings.lisp
diff --git
a/strings.lisp
b/strings.lisp
index d91d9ac9e1d92a7316d3455fca89c13fb47d7b8d..35a177e9715371cc38eea292eddb09c05d380518 100644
(file)
--- a/
strings.lisp
+++ b/
strings.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: strings.lisp,v 1.
6 2003/01/13 21:40:20
kevin Exp $
+;;;; $Id: strings.lisp,v 1.
7 2003/02/07 14:21:55
kevin Exp $
;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-66,12
+66,10
@@
#-excl
(defun list-to-delimited-string (list &optional (separator #\space))
#-excl
(defun list-to-delimited-string (list &optional (separator #\space))
- (let ((output (when list (format nil "~A" (car list)))))
- (dolist (obj (rest list))
- (setq output (concatenate 'string output
- (format nil "~A" separator)
- (format nil "~A" obj))))
- output))
+ (if (consp list)
+ (let ((fmt (format nil "~~A~~{~A~~A~~}" separator)))
+ (format nil fmt (first list) (rest list)))
+ ""))
(defun string-invert (str)
"Invert case of a string"
(defun string-invert (str)
"Invert case of a string"