mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
bring memoize-to-file up-to-date with string-cursor api
This commit is contained in:
parent
79a5952ee1
commit
4e14c53ddb
1 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@
|
|||
(string-append "%0" hex)
|
||||
(string-append "%" hex))))
|
||||
(define (collect str from to res)
|
||||
(if (>= from to)
|
||||
(if (string-cursor>=? from to)
|
||||
res
|
||||
(cons (substring-cursor str from to) res)))
|
||||
(let ((start (string-cursor-start str))
|
||||
|
@ -212,7 +212,7 @@
|
|||
(read read: read/ss)
|
||||
(write write: write/ss))
|
||||
(lambda args
|
||||
(let ((file (make-path memo-dir (apply args-encoder args))))
|
||||
(let ((file (make-path memo-dir (args-encoder args))))
|
||||
(define (compute)
|
||||
(let ((res (apply proc args)))
|
||||
(create-directory* (path-directory file))
|
||||
|
|
Loading…
Add table
Reference in a new issue