]> git.eshelyaron.com Git - emacs.git/commitdiff
(ml-concat): New function.
authorKarl Heuer <kwzh@gnu.org>
Wed, 22 Mar 1995 20:39:17 +0000 (20:39 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 22 Mar 1995 20:39:17 +0000 (20:39 +0000)
lisp/emulation/mlsupport.el

index 3596036d0e53c59dfd78c7a5c4045b51449acd97..d60b3809dfdd67787d3dacbfa8fa4efa6d57067d 100644 (file)
     (if (< to 0) (setq to (+ to length)))
     (substring string from (+ from to))))
 
+(defun ml-concat (&rest args)
+  (let ((newargs nil) this)
+    (while args
+      (setq this (car args))
+      (if (numberp this)
+         (setq this (number-to-string this)))
+      (setq newargs (cons this newargs)
+           args (cdr args)))
+    (apply 'concat (nreverse newargs))))
+
 (provide 'mlsupport)
 
 ;;; mlsupport.el ends here