diff lisp/emulation/mlsupport.el @ 11093:278c796d9d7e

(ml-concat): New function.
author Karl Heuer <kwzh@gnu.org>
date Wed, 22 Mar 1995 20:39:17 +0000
parents 626086713f36
children 187735b53d52
line wrap: on
line diff
--- a/lisp/emulation/mlsupport.el	Wed Mar 22 20:38:52 1995 +0000
+++ b/lisp/emulation/mlsupport.el	Wed Mar 22 20:39:17 1995 +0000
@@ -419,6 +419,16 @@
     (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