X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fscheme%2Fao_scheme_string.scheme;fp=src%2Fscheme%2Fao_scheme_string.scheme;h=99f16faba7dd316709c3a7e4641d6bd1f2e141ad;hp=feeca37ba874f1908d2a22153e8b803ac6b8440d;hb=283553f0f118cef1dbcfbf5e86a43575a610d27f;hpb=48d164e3d4b2ef27fae20fae63b8014803a7b178 diff --git a/src/scheme/ao_scheme_string.scheme b/src/scheme/ao_scheme_string.scheme index feeca37b..99f16fab 100644 --- a/src/scheme/ao_scheme_string.scheme +++ b/src/scheme/ao_scheme_string.scheme @@ -15,7 +15,7 @@ (define string (lambda chars (list->string chars))) -(_??_ (string #\a #\b #\c) "abc") +(string #\a #\b #\c) (define string-map (lambda (proc . strings) @@ -38,7 +38,7 @@ ) ) -(_??_ (string-map (lambda (x) (+ 1 x)) "HAL") "IBM") +(string-map (lambda (x) (+ 1 x)) "HAL") (define string-copy! (lambda (t a f . args) @@ -76,9 +76,9 @@ ) ) -(_??_ (string-copy! (make-string 10) 0 "hello" 0 5) "hello ") -(_??_ (string-copy! (make-string 10) 1 "hello" 0 5) " hello ") -(_??_ (string-copy! (make-string 10) 0 "hello" 0 5) "hello ") +(string-copy! (make-string 10) 0 "hello" 0 5) +(string-copy! (make-string 10) 1 "hello" 0 5) +(string-copy! (make-string 10) 0 "hello" 0 5) (define (string-upcase s) (string-map char-upcase s)) (define (string-downcase s) (string-map char-downcase s)) @@ -100,9 +100,9 @@ ) ) -(_??_ (string-copy "hello" 0 1) "h") -(_??_ (string-copy "hello" 1) "ello") -(_??_ (string-copy "hello") "hello") +(string-copy "hello" 0 1) +(string-copy "hello" 1) +(string-copy "hello") (define substring string-copy) @@ -130,8 +130,8 @@ ) ) -(_??_ (string-fill! (make-string 10) #\a) "aaaaaaaaaa") -(_??_ (string-fill! (make-string 10) #\a 1 2) " a ") +(string-fill! (make-string 10) #\a) +(string-fill! (make-string 10) #\a 1 2) (define string-for-each (lambda (proc . strings) @@ -153,4 +153,4 @@ ) ) -(_??_ (string-for-each write-char "IBM\n") #t) +(string-for-each write-char "IBM\n")