[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bytevector-string-ref
From: |
Sascha Ziemann |
Subject: |
Re: bytevector-string-ref |
Date: |
Wed, 21 Dec 2022 16:49:09 +0100 |
> Is that related to "shared arrays"? This seems to be even more general (the
> affine part being the offset of the slice).
Thanks for the hint. I was not aware of them.
But I am struggling to use them. This does not work:
(define str "Hello, World!")
(define bv (string->utf8 str))
(define sa (make-shared-array bv (lambda (i) (list (+ i 7))) '(0 4)))
(utf8->string sa)
Anything else I can try?