Am Sa., 13. Apr. 2024 um 22:09 Uhr schrieb Pierre-Luc Gauthier
<p.luc.gauth...@gmail.com>:

> But what about the parenthesised alist -> (alist) ‽
>
> I have not found documentation here :
> https://extending-lilypond.gitlab.io/en/scheme/alists.html
> nor here :
> https://lilypond.org/doc/v2.25/Documentation/extending/association-lists-_0028alists_0029
>

(alist) is a procedure, which evaluates to an alist, when called, p.e.

#(define (foo) '((bar . buzz)))

#(display foo)
=> #<procedure foo ()>

#(display (foo))
=> ((bar . buzz))


Instead of
#(define (anAList) `((aVariable . ,aSymbol)))
you could write:
#(define anAList (lambda () `((aVariable . ,aSymbol))))

Cheers,
  Harm

Reply via email to