Re: check undefined variable scheme

2018-05-24 Thread Gianmaria Lari
Thank you David, Urs and Andrew for the code, the link to the documentation and the study suggestion! On Thu, 24 May 2018 at 11:00, Andrew Bernard wrote: > Hi Gianmaria, > > The others have beat me to it, but I just wanted to say you should read up > on closures in

Re: check undefined variable scheme

2018-05-24 Thread Andrew Bernard
Hi Gianmaria, The others have beat me to it, but I just wanted to say you should read up on closures in Scheme. This will give you are really good grasp of what's going on. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org

Re: check undefined variable scheme

2018-05-24 Thread Urs Liska
Am 24.05.2018 um 10:46 schrieb David Kastrup: Urs Liska writes: Am 24.05.2018 um 09:56 schrieb Gianmaria Lari: The following function increase a counter by 1 and return it as string #(define count 0) #(define (nextcount) (begin                      

Re: check undefined variable scheme

2018-05-24 Thread David Kastrup
Urs Liska writes: > Am 24.05.2018 um 09:56 schrieb Gianmaria Lari: >> The following function increase a counter by 1 and return it as string >> >> #(define count 0) >> #(define (nextcount) (begin >>                       (set! count (+ 1 count)) >>          

Re: check undefined variable scheme

2018-05-24 Thread Urs Liska
Am 24.05.2018 um 09:56 schrieb Gianmaria Lari: The following function increase a counter by 1 and return it as string #(define count 0) #(define (nextcount) (begin                       (set! count (+ 1 count))                       (number->string count)                  

check undefined variable scheme

2018-05-24 Thread Gianmaria Lari
The following function increase a counter by 1 and return it as string #(define count 0) #(define (nextcount) (begin (set! count (+ 1 count)) (number->string count) ) ) Is my code ok, or I should write it in a different way? Is