/[emacs]/emacs/lispref/sequences.texi
ViewVC logotype

Diff of /emacs/lispref/sequences.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by miles, Mon Sep 1 15:45:41 2003 UTC revision 1.21 by fx, Mon Oct 6 16:52:24 2003 UTC
# Line 69  elements.  This section describes functi Line 69  elements.  This section describes functi
69  sequence.  sequence.
70    
71  @defun sequencep object  @defun sequencep object
72  Returns @code{t} if @var{object} is a list, vector, or  Returns @code{t} if @var{object} is a list, vector,
73  string, @code{nil} otherwise.  string, or char-table, @code{nil} otherwise.
74  @end defun  @end defun
75    
76  @defun length sequence  @defun length sequence
# Line 78  string, @code{nil} otherwise. Line 78  string, @code{nil} otherwise.
78  @cindex list length  @cindex list length
79  @cindex vector length  @cindex vector length
80  @cindex sequence length  @cindex sequence length
81    @cindex char-table length
82  This function returns the number of elements in @var{sequence}.  If  This function returns the number of elements in @var{sequence}.  If
83  @var{sequence} is a cons cell that is not a list (because the final  @var{sequence} is a cons cell that is not a list (because the final
84  @sc{cdr} is not @code{nil}), a @code{wrong-type-argument} error is  @sc{cdr} is not @code{nil}), a @code{wrong-type-argument} error is
85  signaled.  signaled.  For a char-table, the value returned is always one more
86    than the maximum Emacs character code.
87    
88  @xref{List Elements}, for the related function @code{safe-length}.  @xref{List Elements}, for the related function @code{safe-length}.
89    
# Line 109  signaled. Line 111  signaled.
111  @end example  @end example
112  @end defun  @end defun
113    
114    @defun string-bytes string
115    @cindex string, number of bytes
116    This function returns the number of bytes in @var{string}.
117    If @var{string} is a multibyte string, this is greater than
118    @code{(length @var{string})}.
119    @end defun
120    
121  @defun elt sequence index  @defun elt sequence index
122  @cindex elements of sequences  @cindex elements of sequences
123  This function returns the element of @var{sequence} indexed by  This function returns the element of @var{sequence} indexed by

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26