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.

oole-1<br />

56<br />

Examples:<br />

(boole boole-clr 3) => 3<br />

(boole boole-set 7) => 7<br />

;with two arguments always returns<br />

; integer1<br />

I<br />

(boole boole-1 1 B) => 1<br />

(boole boole-2 1 B) => B<br />

As a matter of style the explicit logical functions such as logand, logior,<br />

and logxor are usually preferred over the equivalent forms of boole. boole<br />

is useful, however, when you want to generalize a procedure so that it can<br />

use one of several logical operations.<br />

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

of Bit-wise Logical Operations" in Symbolics Common Lisp: Language Concepts.<br />

boole-l<br />

Constant<br />

This constant can be used as the fIrst argument to the function boole; it<br />

specilles a bit-wise logical operation that returns the irrst integer argument<br />

of boole.<br />

boole-2<br />

Constant<br />

This constant can be used as the irrst argument to the function boole; it<br />

specilles a bit-wise logical operation that returns the last integer argument<br />

of boole.<br />

boole-and<br />

Constant<br />

This constant can be used as the irrst argument to the function boole; it<br />

specifIes a bit-wise logical and operation to be performed on the integer arguments<br />

of boole.<br />

boole-andcl<br />

Constant<br />

This constant can be used as the fIrst argument to the function boole; it<br />

specilles a logical operation to be performed on the integer arguments of<br />

boole, namely, a bit-wise logical and of the complement of the first integer<br />

argument with the next integer argument.<br />

boole-andc2<br />

Constant<br />

This constant can be used as the fIrst argument to the function boole; it<br />

specifies a logical operation to be performed on the integer arguments of<br />

boole, namely, a bit-wise logical and of the irrst integer argument with the<br />

complement of the next integer argument.

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

Saved successfully!

Ooh no, something went wrong!