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 |
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 |
|
|
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 |