diff options
author | Daniel Llorens <lloda@sarc.name> | 2021-10-21 15:05:46 +0200 |
---|---|---|
committer | Daniel Llorens <lloda@sarc.name> | 2021-10-21 15:05:46 +0200 |
commit | 6be51f9bbf47692ee5747b2cac6b372df65de970 (patch) | |
tree | 1c9c4fd6cfc65d64f320d32e91ed10e7ccd0ed57 /doc/ref/api-data.texi | |
parent | c85724bd0a72a11f8c28c844a200d624ce32958a (diff) | |
download | guile-6be51f9bbf47692ee5747b2cac6b372df65de970.tar.gz |
Provide xxvector-copy and xxvector-copy! for srfi-4 vectors
These use the argument conventions of vector-copy!, string-copy!,
etc. and not that of bytevector-copy! (which is from r6rs).
* module/srfi/srfi-4/gnu.scm: As stated.
* test-suite/tests/srfi-4.test: Tests.
* doc/ref/srfi-modules.texi: Documentation.
* libguile/bytevectors.c (bytevector-copy!): Add overlap note to
docstring.
* libguile/vectors.c (vector-copy!): Reuse text for the overlap note.
Diffstat (limited to 'doc/ref/api-data.texi')
-rw-r--r-- | doc/ref/api-data.texi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index f695b1934..b6671deab 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -6395,6 +6395,7 @@ The value returned by @code{vector-fill!} is unspecified. @end deffn @rnindex vector-copy +@anchor{x-vector-copy} @deffn {Scheme Procedure} vector-copy vec [start [end]] @deffnx {C Function} scm_vector_copy (vec) Returns a freshly allocated vector containing the elements of @var{vec} @@ -6403,6 +6404,7 @@ in the range [@var{start} ... @var{end}). @var{start} defaults to 0 and @end deffn @rnindex vector-copy! +@anchor{x-vector-copy!} @deffn {Scheme Procedure} vector-copy! dst at src [start [end]] Copy the block of elements from vector @var{src} in the range [@var{start} ... @var{end}) into vector @var{dst}, starting at position |