List of: Scheme Extensions
Subjects: Mathematics
Contents: Kernel

Action: Determines if a Scheme object is a gvector.

Filename: kern/kern_scm/gvec_scm.cxx

Syntax: (gvector? object)

Arg Types: object scheme-object

Returns: boolean

object specifies the scheme-object that has to be queried for a gvector.

Example: ; gvector?

; Create a gvector.

(define vector1 (gvector 7 5 0 "spherical"))

;; vector1

; Determine if the following objects are gvectors.

(gvector? vector1)

;; #t

(gvector? (position 0 0 0))

;; #f

(gvector? -4)

;; #f