lilypond-user
[Top][All Lists]
Advanced

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

Re: Scheme question: convert a range


From: David Nalesnik
Subject: Re: Scheme question: convert a range
Date: Mon, 16 Nov 2015 18:57:38 -0600



On Mon, Nov 16, 2015 at 3:22 PM, Simon Albrecht <address@hidden> wrote:
On 16.11.2015 22:20, Thomas Morley wrote:
(define (foo pair)
   (if (and (integer? (car pair)) (integer? (cdr pair)))
       (iota (1+ (interval-length pair)) (car pair) 1))
       #f)

(foo '(3 . 7))
--> (3 4 5 6 7)

An equally good solution.
Thank you, Simon


Interesting that all these responses show up in my inbox hours after I sent mine, though these were sent earlier!                                                                                    

reply via email to

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