lilypond-user
[Top][All Lists]
Advanced

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

Re: Paper size survey


From: Simon Albrecht
Subject: Re: Paper size survey
Date: Tue, 21 Apr 2015 21:46:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Am 21.04.2015 um 14:44 schrieb Mattes:
Am Dienstag, 21. April 2015 14:23 CEST, Simon Albrecht <address@hidden> schrieb:
... Yet I have taken inspiration from there to create the
attached tool for making nice margins, which I’ve been using ever since.

Hmm, maybe I miss the obvious, but in your code:

  (define pair-or-rational? (or pair? rational?))

you might as well write (define pair-or-rational? pair?) since (or pair? 
rational?) allways evaluates to
pair? ...
Do you want

  (define pair-or-rational? (thing)
     (or
        (pair? thing)
        (rational? thing)))
Of course. It’s been a while since I wrote the code, and obviously I didn’t have the necessary understanding of scheme then…

Thanks for the hint :-)
Simon



reply via email to

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