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.

<strong>zl</strong>:getchar 254<br />

<strong>zl</strong>:getchar string index Function<br />

Returns the indexth character of string as a symbol. Note that i-origin indexing<br />

is used. This function is mainly for Maclisp compatibility; aref<br />

should be used to index into strings (however, aref does not coerce symbols<br />

into strings).<br />

Examples:<br />

(21 :getchar "string" 1) => lsi<br />

(21 :getchar 'symbol 2) => Y<br />

(21 :getchar "STRING" 1) => S<br />

(<strong>zl</strong> :getchar "ORANGE" 0) => NIL<br />

;1-origin indexing is used<br />

For a table of related items: See the section "Maclisp-Compatible String<br />

Functions" in Symbolics Common Lisp: Language Concepts.<br />

<strong>zl</strong>:getcharn string index Function<br />

Returns the indexth character of string as a character. Note that i-origin<br />

indexing is used. This function is mainly for Maclisp compatibility; aref<br />

should be used to index into strings (however, aref does not coerce symbols<br />

or numbers into strings).<br />

Examples:<br />

(21 :getcharn "string" 1) => #\s<br />

(<strong>zl</strong> :getcharn 'symbol 2) => #\Y<br />

(21 :getcharn "STRING" 1) => #\S<br />

(21 :getcharn "ORANGE" 0) => 0 ;1-origin indexing is used<br />

For a table of related items: See the section "Maclisp-Compatible String<br />

Functions" in Symbolics Common Lisp: Language Concepts.<br />

getf plist indicator &optional default<br />

Function<br />

Searches the property list plist for indicator. If indicator is found, the corresponding<br />

value is returned. If getf cannot find indicator, default is<br />

returned. If default is not specified, nil is used. Note that there is no way<br />

to distinguish between a property whose value is default and a missing<br />

property. See the section "Functions Relating to the Property List of a<br />

Symbol" in Symbolics Common Lisp: Language Concepts.<br />

I<br />

<strong>zl</strong>:get-flavor-handler-for flavor-name operation Function<br />

Given a flavor-name and an operation (a function spec that names a generic<br />

function or a message), <strong>zl</strong>:get-flavor-handler-for returns the flavor's<br />

method for the operation or nil if it has none.<br />

For example:

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

Saved successfully!

Ooh no, something went wrong!