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
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
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
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))
>>
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)
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