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 | |
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 | ||||
-rw-r--r-- | module/util/color.scm (renamed from module/output/color.scm) | 2 |
2 files changed, 8 insertions, 6 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)) diff --git a/module/output/color.scm b/module/util/color.scm index 123d0ba2..7b6dacec 100644 --- a/module/output/color.scm +++ b/module/util/color.scm @@ -1,4 +1,4 @@ -(define-module (output color) +(define-module (util color) ) ;; Returns a color with good contrast to the given background color. |