GNU Info

Info Node: (guile.info)Vectors

(guile.info)Vectors


Next: Hooks Prev: Association Lists and Hash Tables Up: Data Types
Enter node , (file) or (file)node

Vectors
=======

 - primitive: make-vector k [fill]
     Returns a newly allocated vector of K elements.  If a second
     argument is given, then each element is initialized to FILL.
     Otherwise the initial contents of each element is unspecified.
     (r5rs)

 - primitive: vector . l
 - primitive: list->vector l
     Returns a newly allocated vector whose elements contain the given
     arguments.  Analogous to `list'. (r5rs)

     (vector 'a 'b 'c)                      ==>  #(a b c)

 - primitive: vector->list v
     `Vector->list' returns a newly allocated list of the objects
     contained in the elements of VECTOR.  (r5rs)

     (vector->list '#(dah dah didah))
     =>  (dah dah didah)
     list->vector '(dididit dah))
     =>  #(dididit dah)

 - primitive: vector-fill! v fill_x
     Stores FILL in every element of VECTOR.  The value returned by
     `vector-fill!' is unspecified. (r5rs)

 - primitive: vector? obj
     Returns #t if OBJ is a vector, otherwise returns #f. (r5rs)


automatically generated by info2www version 1.2.2.9