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.

mod 354<br />

I<br />

(mismatch<br />

'(234) '(1 2 3) :test #'» => NIL<br />

:test-not is similar to :test, except that the sense of the test is inverted.<br />

An element of sequence satisfies the test if (funcall testfun item (keyfn x»<br />

is false.<br />

The value of the keyword argument :key, if non-nil, is a function that<br />

takes one argument. This function extracts from each element the part to<br />

be tested in place of the whole element.<br />

For example:<br />

(mismatch '«north 1) (south 2» '«right 1)(left 2» :key #'second)<br />

=> NIL<br />

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

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

mod number divisor Function<br />

Divides number by divisor converting the quotient into an integer and truncating<br />

the result toward negative infinity. Returns the remainder. This is<br />

the same as the second value of (floor number divisor).<br />

When there is no remainder, the returned value is o.<br />

The arguments can be integers or floating-point numbers.<br />

Examples:<br />

(mod 3 2) => 1<br />

(mod -3 2) =><br />

(mod 3 -2) =>-1<br />

(mod -3 -2) => -1<br />

(mod 4 -2) => 8<br />

(mod 3.8 2) => 1.8<br />

(mod -3.8 2) => 8.28888885<br />

Related Functions:<br />

floor<br />

rem<br />

For a table of related items: See the section "Arithmetic Functions" in<br />

Symbolics Common Lisp: Language Concepts.<br />

mod n Type Specifier<br />

mod defines the set of non-negative integers less than n. This is equivalent<br />

to (integer 8 n-1), or to (integer 8 (n».<br />

As a type specifier, mod can only be used in list form.<br />

Examples:

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

Saved successfully!

Ooh no, something went wrong!