17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

simple-bit-vector 486<br />

(setq example-simple-array (make-array '(3») => #<br />

(typep example-simple-array 'simple-array) => T<br />

(<strong>zl</strong>:typep example-simple-array) => :ARRAY<br />

(subtypep 'simple-array 'array) => T and T<br />

(sys:type-arglist 'simple-array)<br />

=> (&OPTIONAL (ELEMENT-TYPE '*) (DIMENSIONS '*» and T<br />

See the section "Data Types and Type Specifiers" in Symbolics Common<br />

Lisp: Language Concepts. See the section "Arrays" in Symbolics Common<br />

Lisp: Language Concepts.<br />

I<br />

simple-bit-vector &optional ( size '* ) Type Specifier<br />

simple-bit-vector is the type specifier symbol for the Lisp data structure of<br />

that name.<br />

simple-vector, simple-string, and simple-bit-vector are disjoint subtypes of<br />

. the type simple-array: simple-vector means (simple-array t (*»;<br />

simple-string means (simple-array string-char) or (simple-array<br />

character); simple-bit-vector means (simple-array bit (*».<br />

This type specifier can be used in either symbol or list form. Used in list<br />

form, simple-bit-vector dermes the set of bit-vectors of the indicated size.<br />

This means the same as (simple-array bit (size».<br />

Examples:<br />

(setq array-bit-vector-not-simple<br />

(make-array '(3) :element-type 'bit :fill-pointer 2»<br />

=> #<br />

(setq array-bit-vector-simple<br />

(make-array '(3) :element-type 'bit»<br />

=> #<br />

(typep array-bit-vector-simple 'simple-array) => T<br />

(typep array-bit-vector-not-simple 'simple-array) => NIL<br />

(typep #*1 '(simple-bit-vector 1»<br />

=> T<br />

(subtypep 'simple-bit-vector 'simple-array) => T and T<br />

(subtypep 'simple-bit-vector 'bit-vector) => T and T<br />

(simple-bit-vector-p array-bit-vector-simple) => T

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!