diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-17 18:39:53 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-17 18:40:00 +0200 |
commit | f12fca91b185cbf83fbe173fadf6a46f6c3c0c65 (patch) | |
tree | de863658e3494ca3927095a28e44d0e1f4ce5d6d /module/util.scm | |
parent | move terminal output. (diff) | |
download | calp-f12fca91b185cbf83fbe173fadf6a46f6c3c0c65.tar.gz calp-f12fca91b185cbf83fbe173fadf6a46f6c3c0c65.tar.xz |
Fixes.
Diffstat (limited to '')
-rw-r--r-- | module/util.scm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/module/util.scm b/module/util.scm index e2acd551..28864896 100644 --- a/module/util.scm +++ b/module/util.scm @@ -309,11 +309,6 @@ (define-public (as-symb s) (if (string? s) (string->symbol s) s)) -(define-public (downcase-symbol symb) - (-> symb - symbol->string - string-downcase - string->symbol)) (define-public (enumerate lst) @@ -505,6 +500,13 @@ (and=>> (and=> value proc) rest ...)])) +(define-public (downcase-symbol symb) + (-> symb + symbol->string + string-downcase + string->symbol)) + + ;; @example ;; (group (iota 10) 2) ;; ⇒ ((0 1) (2 3) (4 5) (6 7) (8 9)) |