lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Downcase of a symbol


From: David Kastrup
Subject: Re: Downcase of a symbol
Date: Sat, 13 Aug 2016 08:10:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Urs Liska <address@hidden> writes:

> I have written a function to return the lowercase version of a symbol
> for use in my library as
>
> % Return the lowercase version of a symbol
> #(define (symbol->lowercase sym)
>    (string->symbol
>     (string-downcase
>      (symbol->string sym))))
>
> Just a small question: this seems so general

Why?  What would that be useful for?  Normal convention for symbols is
already lowercase.

> that I can't imagine it isn't already available somewhere in Scheme,
> Guile or LilyPond. Of course I'd prefer using an official function
> instead of my own.
>
> Thanks for any pointers

Well, grepping for downcase in LilyPond does not return anything that
would look like a facility of that kind.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]