[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making markup functions parametric
From: |
Urs Liska |
Subject: |
Re: Making markup functions parametric |
Date: |
Fri, 03 Jul 2020 22:07:34 +0200 |
User-agent: |
Evolution 3.36.3-1 |
Am Freitag, den 03.07.2020, 21:58 +0200 schrieb Ralf Mattes:
>
> Am Freitag, 03. Juli 2020 21:52 CEST, Urs Liska <
> lists@openlilylib.org> schrieb:
>
> > Unfortunately I don't really have an idea what "#:circle" actually
> > *is*, so I have no clue about getting where I need to.
>
> Syntacilally? That would be a scheme keyword.
So that would be difficult to inject from a variable/argument, isn't
it?
I can of course do
(cond
((eq? enclosure 'circle)
(markup #:circle "CC"))
((eq? enclosure 'box)
(markup #:box "CC)))
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.
Any ideas?
ThanksUrs
>
> Cheers, RalfD
>
> > BestUrs
> >
> >
>
>
>
- Making markup functions parametric, Urs Liska, 2020/07/03
- Re: Making markup functions parametric, Ralf Mattes, 2020/07/03
- Re: Making markup functions parametric,
Urs Liska <=
- Re: Making markup functions parametric, Robin Bannister, 2020/07/03
- Re: Making markup functions parametric, Urs Liska, 2020/07/03
- Re: Making markup functions parametric, Lukas-Fabian Moser, 2020/07/03
- Re: Making markup functions parametric, Lukas-Fabian Moser, 2020/07/03
- Re: Making markup functions parametric, Urs Liska, 2020/07/03
- Re: Making markup functions parametric, Urs Liska, 2020/07/04
- Re: Making markup functions parametric, Lukas-Fabian Moser, 2020/07/04
- Re: Making markup functions parametric, Urs Liska, 2020/07/04