lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

procedure to check equality of list-elements


From: Thomas Morley
Subject: procedure to check equality of list-elements
Date: Sun, 6 Nov 2022 13:03:34 +0100

Hi,

in !1701 `ly:beam::calc-knee' checks whether all list-elements are equal.
Basically doing (apply eqv? <number-list>).
Tbh, I don't understand why it works...
Though, the need to check a list for all list-elements are equal
happened to me not only once.
Thus, would it be acceptable to add something like:

(define* (equal-list-elts? list #:optional (proc eq?))
  (apply proc list))

to lily-library.scm?

Cheers,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]