diff options
Diffstat (limited to 'strcase.scm')
-rw-r--r-- | strcase.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/strcase.scm b/strcase.scm index f223527..f2c8331 100644 --- a/strcase.scm +++ b/strcase.scm @@ -43,3 +43,8 @@ (define (string-capitalize str) (string-capitalize! (string-copy str))) + +(define string-ci->symbol + (if (equal? "a" (symbol->string 'a)) + (lambda (str) (string->symbol (string-downcase str))) + (lambda (str) (string->symbol (string-upcase str))))) |