Urs Liska <u...@openlilylib.org> 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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to