diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:36 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:36 -0800 |
commit | 5bea21e81ed516440e34e480f2c33ca41aa8c597 (patch) | |
tree | 653ace1b8fe0a9916d861d35ff8f611b46c80d37 /strcase.scm | |
parent | 237c6e380aebdcbc70bd1c9ecf7d3f6effca2752 (diff) | |
download | slib-5bea21e81ed516440e34e480f2c33ca41aa8c597.tar.gz slib-5bea21e81ed516440e34e480f2c33ca41aa8c597.zip |
Import Upstream version 3a4upstream/3a4
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 |