| To: | Scheme Shell <scsh-bugs@zurich.ai.mit.edu> |
|---|---|
| Subject: | string->list |
| From: | PILCH Hartmut <phm@a2e.de> |
| Date: | Sun, 18 Feb 2001 16:57:58 +0100 (CET) |
> (string->list "abc")
Error: exception
(string-length '())
For the time being I wrote my own library version which works:
(define (string->list-sub string len) (if (> len 0) (cons (string-ref string 0)
(string->list-sub (substring string 1) (- len 1))) '()))
(define (string->list string) (and (string? string) (string->list-sub string
(string-length string))))
-phm
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Scsh-hackers] crypt issues, Michael Sperber [Mr. Preprocessor] |
|---|---|
| Next by Date: | Invalid tvec generation in submatch -> POSIX translation, Hannu Koivisto |
| Previous by Thread: | Re: [Scsh-hackers] crypt issues, Michael Sperber [Mr. Preprocessor] |
| Next by Thread: | Invalid tvec generation in submatch -> POSIX translation, Hannu Koivisto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |