|
From: | Aaron Hill |
Subject: | Re: Scheme expressions on lilypond command line (-e) |
Date: | Mon, 19 Oct 2020 20:11:54 -0700 |
User-agent: | Roundcube Webmail/1.4.9 |
On 2020-10-19 7:51 pm, Dave Seidel wrote:
More succinct: #(begin (use-modules (guile-user)) (if (not(defined? 'part)) (define partName "") (define partName (string-append "S" (number->string part))) ) )
%%%% partName = #(or (false-if-exception (format #f "S~d" (@ (guile-user) part))) "")) %%%%
Interesting. I don't understand the '@' syntax -- been trying to look itup but so far to no avail.
https://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Using-Guile-Modules.html#Using-Guile-Modules -- Aaron Hill
[Prev in Thread] | Current Thread | [Next in Thread] |