Am Freitag, 03. Juli 2020 22:07 CEST, Urs Liska <li...@openlilylib.org> schrieb:
> > Syntacilally? That would be a scheme keyword. > > So that would be difficult to inject from a variable/argument, isn't > it? No, why? You can of course store a keyword in a variable and/or pass it as an argument. > I can of course do > > (cond > ((eq? enclosure 'circle) > (markup #:circle "CC")) > ((eq? enclosure 'box) > (markup #:box "CC))) Looks a bit too complicated - iff you insist on using symbols as parameters you could use guile's symbol->keyword function. > But I'd rather do something like > > (markup (assq-ref enclosures enclosure) "CC") > > i.e. looking up the appropriate function instead of creating a > conditional chain. But #:circle isn't a function ... Cheers RalfD > Any ideas? > > ThanksUrs > > > > > Cheers, RalfD > > > > > BestUrs > > > > > > > > > > > > > > -- Ralf Mattes Hochschule für Musik Freiburg Projektleitung HISinOne Schwarzwaldstr. 141, D-79102 Freiburg http://www.mh-freiburg.de