(pfds fector)

fector? :: Object -> Boolean Returns #t if a given object is a fector, #f otherwise.

(make-fector . args)

make-fector :: Int [ Object ] -> Fector Returns a fector of a specified size. If the fill parameter is given, the locations of the fector are initialised to that object, otherwise their initial values are unspecified.

(fector . values)

fector :: [Object ...] -> Fector Returns a fector whose initial values are given as arguments.

(build-fector n f)

build-fector :: Int (Int -> Object) -> Fector returns a new fector of a given length, where each element is initialised to the value of the given function applied to its index.

(fector-length fector)

fector-length :: Fector -> Int Returns the number of elements that are stored in the fector.

(fector-ref fector index)

fector-ref :: Fector Int -> Object Returns the value associated with a given index into the fector. If the index is outwith the range 0 <= index < length, then an &assertion is raised.

(fector-set fector index object)

fector-set :: Fector Int Object -> Fector Returns a new fector equivalent to the previous one except the given index is now associated with a given object. If the index is outwith the range 0 <= index < length, then an &assertion is raised.

(list->fector l)

list->fector ;; Listof(Object) -> Fector Returns a fector initialised with the contents of the given list.

(fector->list fector)

fector->list :: Fector -> Listof(Object) Returns a list containing the objects in a given fector.