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.

353 minusp<br />

minusp number Function<br />

Returns t if its argument is a negative number, strictly less than zero.<br />

Otherwise it returns nil. If number is not a noncomplex number, minusp<br />

signals an error.<br />

Examples:<br />

(minusp -5) => T<br />

(minusp 9) => NIL<br />

(minusp 9.9d9) => NIL<br />

(minusp -9.9) => NIL<br />

For a table of related items: See the section "Numeric Property-checking<br />

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

•<br />

mismatch sequencel sequence2 &key from-end (test #'eql) test-not Function<br />

key (startl 0) (start2 0) endl end2<br />

mismatch compares the specified subsequences of sequencel and sequence2<br />

element-wise. If they are of equal length and match in every element, the<br />

result is nil. Otherwise, the result is a non-negative integer representing<br />

the index within sequencel of the leftmost position at which the two subsequences<br />

fail to match, or, if one subsequence is shorter than and a<br />

matching prefix of the other, the result is the index relative to sequencel<br />

beyond the last position tested.<br />

For example:<br />

(mismatch '(loon heron stork) '(loon heron stork)) => NIL<br />

(mismatch '(hawk loon owl pelican) '(hawk loon eagle pelican)) => 2<br />

(mismatch '(1 2 3) '(1 2 3 4 5)) => 3<br />

If the value of the :from-end keyword is non-nil, then one plus the index of<br />

the rightmost position in which the sequences differ is returned. In effect,<br />

the (sub)sequences are aligned at their right-hand ends and the last elements<br />

are compared, then the ones before, and so on. The index returned<br />

is again an index relative to sequencel. For example:<br />

(mismatch '(hawk loon owl pelican) '(hawk loon eagle pelican)<br />

:from-end t) => 3<br />

:test specifies the test to be performed. An element of sequence satisfies<br />

the test if (funcall testfun item (keyfn x)) is true. Where test fun is the test<br />

function specified by :test, keyfn is the function specified by :key and x is an<br />

element of the sequence. The default test is eql.<br />

For example:

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

Saved successfully!

Ooh no, something went wrong!