17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

335 <strong>zl</strong> :make-raster-array<br />

The make-array-options are the options that can be given to make-array.<br />

For information on those options: See the section "Keyword Options For<br />

make-array" in Symbolics Common Lisp: Language Concepts.<br />

When you cannot use make-raster-array, for example from the<br />

:make-array option to defstruct contructors, you should use<br />

raster-width-and-height-to-make-array-dimensions instead.<br />

I<br />

<strong>zl</strong>:make-raster-array width height &rest <strong>zl</strong>:make-array-options Function<br />

This function is provided for compatibility with previous releases.<br />

make-raster-array offers the same functionality. For information on this<br />

function: See the function make-raster-array, page 334.<br />

The only difference between <strong>zl</strong>:make-raster-array and make-raster-array<br />

is the list of keyword options they accept. <strong>zl</strong>:make-raster-array accepts<br />

the keyword options that can be given to <strong>zl</strong>:make-array.<br />

make-raster-array accepts the keyword options that can be given to<br />

make-array.<br />

For information on the argument <strong>zl</strong>:make-array-options: See the function<br />

<strong>zl</strong>:make-array, page 322.<br />

make-sequence type size &key initial-element area Function<br />

make-sequence returns a sequence of type type and of length size, each of<br />

whose elements has been initialized to the value of the :initial-element argument<br />

(or nil if none is specified). If :initial-element is specified, the<br />

value must be an object that can be an element of a sequence of type type.<br />

For example:<br />

(make-sequence '(vector double-float) 5 :initial-element 1d0)<br />

=> #(1.0d0 1.0d0 1.0d0 1.0d0 1.0d0)<br />

The optional area argument is the number of the area in which to create<br />

the new alist. (Areas are an advanced feature of storage management.)<br />

See the section "Areas" in Internals, Processes, and Storage Management.<br />

You can also create sequences using the vector and make-list functions.<br />

See the function vector, page 610. See the function make-list, page 329.<br />

For a table of related items: See the section "Sequence Construction and<br />

Access" in Symbqlics Common Lisp: Language Concepts.<br />

make-string size &key initial-element element-type area Function<br />

The function make-string returns a simple string of length size. It constructs<br />

a one-dimensional array without fill pointer or displacement, to hold<br />

elements of type character, or any of its subtypes, that is, string-char, or<br />

standard-char. Depending on their character type, strings created with<br />

make-string can therefore be either fat or thin.

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

Saved successfully!

Ooh no, something went wrong!