diff options
author | Ben Sima <ben@bsima.me> | 2020-05-09 15:02:55 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-05-09 15:03:30 -0700 |
commit | f0f74f93d6cce751a4aef2576f7bce837f7b23c2 (patch) | |
tree | 87faa28bcc6a4ac411b302e8750166c3fabea81c /Biz | |
parent | 423a5778c62a3c6a47e4466e9b5f581e0dcb3c5e (diff) |
Add proper replace
- replace was actually replace-char
- backported string-replace-substring because it's only in Guile 3
Diffstat (limited to 'Biz')
-rwxr-xr-x | Biz/Bild.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Biz/Bild.scm b/Biz/Bild.scm index 4e1d490..1fcae96 100755 --- a/Biz/Bild.scm +++ b/Biz/Bild.scm @@ -144,14 +144,14 @@ (define ns? symbol?) (define (ns->path ns) - (let ((to-path (lambda (s) (string/replace s #\. #\/)))) + (let ((to-path (lambda (s) (string/replace-char s #\. #\/)))) (cond ((symbol? ns) (to-path (symbol->string ns))) ((string? ns) (to-path ns)) (else (error "ns should be a string or symbol"))))) (define (path->ns path) - (let ((to-ns (lambda (s) (string/replace s #\/ #\.)))) + (let ((to-ns (lambda (s) (string/replace-char s #\/ #\.)))) (cond ((symbol? path) (to-ns (symbol->string path))) ((string? path) (to-ns path)) |