]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/lily-library.scm
don't delete .scale.pfa; the FF script may not have read them
[lilypond.git] / scm / lily-library.scm
index 1e6f407b0963f3e33b668f2847f5c67b592c3081..7bdf96d05d542a73b97e5a2a9d5f5b1d45e83c87 100644 (file)
@@ -231,6 +231,16 @@ found."
 ;; list
 
 
+(define-public (list-join lst intermediate)
+  "put INTERMEDIATE  between all elts of LST."
+
+  (fold-right
+   (lambda (elem prev)
+           (if (pair? prev)
+               (cons  elem (cons intermediate prev))
+               (list elem)))
+         '() lst))
+
 (define-public (filtered-map proc lst)
   (filter
    (lambda (x) x)
@@ -490,7 +500,6 @@ possibly turned off."
 
 (define-public (car< a b) (< (car a) (car b)))
 
-
 (define-public (symbol<? lst r)
   (string<? (symbol->string lst) (symbol->string r)))