On 05/30/17 11:13, Jan-Peter Voigt wrote:
I doubt that checking all characters in the string are in the range '0'-'9' is faster then string->number.

Don't forget the optional leading hyphen, base specifiers (#x, #o, #d, #b), etc.

However, do keep in mind that (integer? (string->number x)) accepts "2/2", "1.0", "1e10", and even "1.0000000000000001" as integers, which might not be what you want.

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

Reply via email to