Mercurial > hg > xemacs-beta
comparison man/lispref/sequences.texi @ 444:576fb035e263 r21-2-37
Import from CVS: tag r21-2-37
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:36:19 +0200 |
parents | 3ecd8885ac67 |
children | 62b9ef1ed4ac |
comparison
equal
deleted
inserted
replaced
443:a8296e22da4e | 444:576fb035e263 |
---|---|
601 | 601 |
602 @defun bitp object | 602 @defun bitp object |
603 This function returns @code{t} if @var{object} is either 0 or 1. | 603 This function returns @code{t} if @var{object} is either 0 or 1. |
604 @end defun | 604 @end defun |
605 | 605 |
606 @defun bit-vector &rest objects | 606 @defun bit-vector &rest bits |
607 This function creates and returns a bit vector whose elements are the | 607 This function creates and returns a bit vector whose elements are the |
608 arguments @var{objects}. The elements must be either of the two | 608 arguments @var{bits}. Each argument must be a bit, i.e. one of the two |
609 integers 0 or 1. | 609 integers 0 or 1. |
610 | 610 |
611 @example | 611 @example |
612 @group | 612 @group |
613 (bit-vector 0 0 0 1 0 0 0 0 1 0) | 613 (bit-vector 0 0 0 1 0 0 0 0 1 0) |
616 @result{} #* | 616 @result{} #* |
617 @end group | 617 @end group |
618 @end example | 618 @end example |
619 @end defun | 619 @end defun |
620 | 620 |
621 @defun make-bit-vector length object | 621 @defun make-bit-vector length bit |
622 This function creates and returns a bit vector consisting of | 622 This function creates and returns a bit vector consisting of |
623 @var{length} elements, each initialized to @var{object}. | 623 @var{length} elements, each initialized to @var{bit}, which must be |
624 one of the two integers 0 or 1. | |
624 | 625 |
625 @example | 626 @example |
626 @group | 627 @group |
627 (setq picket-fence (make-bit-vector 9 1)) | 628 (setq picket-fence (make-bit-vector 9 1)) |
628 @result{} #*111111111 | 629 @result{} #*111111111 |