]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/output-lib.scm
Issue 3580: Replace unwarranted uses of map with for-each and other Scheme cleanups
[lilypond.git] / scm / output-lib.scm
index 33a03139dead37a6f1e6a09d3cf57259ef466e6e..dc88b4387a8f00e87031a233c656642b3b533736 100644 (file)
@@ -620,8 +620,8 @@ and duration-log @var{log}."
 (define-public (color? x)
   (and (list? x)
        (= 3 (length x))
-       (apply eq? #t (map number? x))
-       (apply eq? #t (map (lambda (y) (<= 0 y 1)) x))))
+       (every number? x)
+       (every (lambda (y) (<= 0 y 1)) x)))
 
 (define-public (rgb-color r g b) (list r g b))