bytevector-append - append bytevectors
(import (scheme base)) ;R7RS
(bytevector-append bytevector ...)
Returns a newly allocated bytevector whose elements are
the concatenation of the elements in the given bytevectors.
Returns a single bytevector object.
(bytevector-append #u8(0 1 2) #u8(3 4 5))
=> #u8(0 1 2 3 4 5)
This procedure is absent from R6RS. One possible implementation is
(define (bytevector-append . bvs)
(for-each (lambda (bv) (put-bytevector p bv)) bvs))))
It is an error if one of the arguments is not a bytevector.
Implementations may signal an error, extend the procedure's
domain of definition to include such arguments,
or fail catastrophically.
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
Markup created by unroff 1.0sc, March 04, 2023.