diff options
Diffstat (limited to 'strcase.scm')
-rw-r--r-- | strcase.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/strcase.scm b/strcase.scm index d099bb6..5925354 100644 --- a/strcase.scm +++ b/strcase.scm @@ -53,8 +53,9 @@ (lambda (str) (string->symbol (s2cis str))))) ;@ (define symbol-append - (let ((s2cis (if (equal? "x" (symbol->string 'x)) - string-downcase string-upcase))) + (let ((s2cis (cond ((equal? "x" (symbol->string 'X)) string-downcase) + ((equal? "X" (symbol->string 'x)) string-upcase) + (else identity)))) (lambda args (string->symbol (apply string-append |