[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ly:make-stencil arguments question
From: |
David Kastrup |
Subject: |
Re: ly:make-stencil arguments question |
Date: |
Thu, 19 Jan 2017 09:59:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> Am 18.01.2017 um 21:18 schrieb Thomas Morley:
>>
>> customClefStencilOne =
>> #(ly:make-stencil `(path 0.2 ',(func 1))
>
> ... I wouldn't have ever thought of that ', combination.
>
> I had yet another complication because in my actual case "func" would
> return an arbitrary number of path segments (i.e. lists) that had to be
> flattened with
>
> (apply append (map l-arc (make-list l-count dir)))
(append-map l-arc (make-list l-count dir))
And if you need to _splice_ the result in as multiple elements rather
than a single list expression use ,@ instead of , for the splicing.
That removes the outer pair of parens, so to say.
--
David Kastrup