SRFI-4SRFI-4: Homogeneous numeric vector datatypes
http://srfi.schemers.org/srfi-4/srfi-4.html
SRFI-4 is implemented in Bigloo ChezScheme Chicken Gambit Gauche Gerbil Guile Kawa LIPS MzScheme STklos Sagittarius Scheme48 Schluessel Skint
The following predefined procedures are available for each value of TAG in
{ s8, u8, s16, u16, s32, u32, s64, u64, f32, f64 }:
- (TAGvector? obj)
- (make-TAGvector n [ TAGvalue ])
- (TAGvector TAGvalue...)
- (TAGvector-length TAGvect)
- (TAGvector-ref TAGvect i)
- (TAGvector-set! TAGvect i TAGvalue)
- (TAGvector->list TAGvect)
- (list->TAGvector TAGlist)
E.G.:
u8vector??, make-u8vector?, u8vector?, u8vector-length?, u8vector-ref?, u8vector-set!?, u8vector->list?, list->u8vector?
|