![]() | ![]() | ![]() | shrink-vector | ![]() |
|
| vector length => vector | [Function] |
Purpose
Shorten a one-dimensional simple array destructively, if
possible.
Package :gbbopen-tools
Module :gbbopen-tools
Arguments and values
| vector | A “simple” vector that is a one-dimensional simple array | |
| length | A non-negative integer, not greater than the length of vector |
Returns
The truncated vector, which may not be identical (eq)
to the original vector argument on some Common Lisp implementations.
Description
This function provides access to the Common Lisp
implementation's low-level truncation operation.
Example
> (shrink-vector "abcdefghijklmnopqrstuvwxyz" 3) "abc" >
Note
This function is compiled in-line for top performance.
The GBBopen Project
![]() | ![]() | ![]() | shrink-vector | ![]() |