From fa3f23105ddcf07c5900de47f19af43d1db1b597 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 Feb 2017 00:05:27 -0800 Subject: Import Upstream version 2c3 --- strcase.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'strcase.scm') 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))))) -- cgit v1.2.3