Am 16.04.2017 um 19:29 schrieb Thomas Morley:
#(define (sign x)
   (if (= x 0)
       0
       (if (< x 0) -1 1)))

I can hardly imagine that default guile or any SRFI doesn’t already provide such a function – unfortunately I’m not well-versed enough to know… Anyone?

Best, Simon

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to