\HeaderA{listLen}{Lengths of list elements}{listLen}
\keyword{utilities}{listLen}
\begin{Description}\relax
This function returns an integer vector with the length
of the elements of its argument, which is expected to be a list.
\end{Description}
\begin{Usage}
\begin{verbatim}
listLen(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A list
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function returns a vector of the same length as
the list \code{x} containing the lengths of each element.

The current implementation is intended for lists containing vectors
and the C-level length function is used to determine lenght.  This
means no dispatch is done for the elements of the list.  If your
list contains S4 objects, you should use \code{sapply(x, length)}
instead.
\end{Details}
\begin{Author}\relax
Jeff Gentry and R. Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{sapply}{sapply}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  foo = lapply(1:8, rnorm)
  listLen(foo)
\end{ExampleCode}
\end{Examples}

