changeset 11093:278c796d9d7e

(ml-concat): New function.
author Karl Heuer <kwzh@gnu.org>
date Wed, 22 Mar 1995 20:39:17 +0000
parents c20013843cb1
children 1a13a256f976
files lisp/emulation/mlsupport.el
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
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