\hypertarget{class_qore_1_1zzz8listzzz9}{}\section{Qore\+:\+:zzz8listzzz9 Class Reference}
\label{class_qore_1_1zzz8listzzz9}\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}


Methods in this pseudo-\/class can be executed on \mbox{\hyperlink{container_data_types_list}{lists}}.  




Inheritance diagram for Qore\+:\+:zzz8listzzz9\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=132pt]{class_qore_1_1zzz8listzzz9__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_aa361b6ecefb8fa38e282becf8001aab1}{complex\+Type}} ()
\begin{DoxyCompactList}\small\item\em returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list has a \mbox{\hyperlink{data_type_declarations_hash_complex_type}{Hash With Declared Value Type}}, \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if not \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_ab48faca6c06f9c18a1a80aeebdffbed5}{contains}} (any arg)
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list contains arg, \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if it does not. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_afe120e9df2803e259c83c943152c9063}{empty}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list is empty (size = 0), \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if not. \end{DoxyCompactList}\item 
auto \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a7d460c5baf4290fac22d521d909e7f12}{first}} ()
\begin{DoxyCompactList}\small\item\em Returns the first entry in the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_ac8e243d7957d6136a6c77d32f320bf24}{iterator}} ()
\begin{DoxyCompactList}\small\item\em Returns a \mbox{\hyperlink{class_qore_1_1_list_iterator}{List\+Iterator}} object for the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a5cb7d0b52f91aca98030ec1926beb5c5}{join}} (\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} str)
\begin{DoxyCompactList}\small\item\em Creates a string from the list and a separator string given as an argument. \end{DoxyCompactList}\item 
auto \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a89cad7498a6102679b4d2a96d3eceef5}{last}} ()
\begin{DoxyCompactList}\small\item\em Returns the last entry in the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a66451c32831c9ea7086d2b9fb62df31c}{lsize}} ()
\begin{DoxyCompactList}\small\item\em Returns the number of elements in the list. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a4231a2c883ab4c25e87c2e3b23f8ff06}{range\+Iterator}} (any \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}{val}})
\begin{DoxyCompactList}\small\item\em Returns a \mbox{\hyperlink{class_qore_1_1_range_iterator}{Range\+Iterator}} object for the list elements. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}{size}} ()
\begin{DoxyCompactList}\small\item\em Returns the number of elements in the list. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a926b4daaed4393124315fb78c27f6c45}{sizep}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} since lists can return a non-\/zero size. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a6eedcfa07a8f8dcbe75eadcb3e5f607b}{type\+Code}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__type__code__constants_gada83cf42174092e6f4d28f21f1ce3c2c}{Qore\+::\+N\+T\+\_\+\+L\+I\+ST}}. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}{val}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if the list is empty (size = 0), \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if not. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Methods in this pseudo-\/class can be executed on \mbox{\hyperlink{container_data_types_list}{lists}}. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_aa361b6ecefb8fa38e282becf8001aab1}\label{class_qore_1_1zzz8listzzz9_aa361b6ecefb8fa38e282becf8001aab1}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!complex\+Type@{complex\+Type}}
\index{complex\+Type@{complex\+Type}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{complex\+Type()}{complexType()}}
{\footnotesize\ttfamily bool Qore\+::zzz8listzzz9\+::complex\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list has a \mbox{\hyperlink{data_type_declarations_hash_complex_type}{Hash With Declared Value Type}}, \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if not 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = n.complexType();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list has a \mbox{\hyperlink{data_type_declarations_hash_complex_type}{Hash With Declared Value Type}}, \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if not
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a74179a71cd4d02fd8367d469df86edfc}{Qore\+::zzz8valuezzz9\+::full\+Type()}}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+13 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_ab48faca6c06f9c18a1a80aeebdffbed5}\label{class_qore_1_1zzz8listzzz9_ab48faca6c06f9c18a1a80aeebdffbed5}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!contains@{contains}}
\index{contains@{contains}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{contains()}{contains()}}
{\footnotesize\ttfamily bool Qore\+::zzz8listzzz9\+::contains (\begin{DoxyParamCaption}\item[{any}]{arg }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list contains arg, \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if it does not. 

This call uses \char`\"{}soft\char`\"{} comparisons (where types may be converted). The computational complexity is {\ttfamily O(n)} (n = the length of the list).

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{R\+E\+T\+\_\+\+V\+A\+L\+U\+E\+\_\+\+O\+N\+LY}}
\end{DoxyParagraph}

\begin{DoxyParams}{Parameters}
{\em arg} & any value to check its presence in the list\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list contains arg, \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if it does not
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
list l = (1, 2, 3);
bool b = l.contains(5); \textcolor{comment}{# returns False}
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_afe120e9df2803e259c83c943152c9063}\label{class_qore_1_1zzz8listzzz9_afe120e9df2803e259c83c943152c9063}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!empty@{empty}}
\index{empty@{empty}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{empty()}{empty()}}
{\footnotesize\ttfamily bool Qore\+::zzz8listzzz9\+::empty (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list is empty (size = 0), \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if not. 

The opposite of \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}{Qore\+::zzz8listzzz9\+::val()}}

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the list is empty (size = 0), \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if not
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = l.empty();
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a7d460c5baf4290fac22d521d909e7f12}\label{class_qore_1_1zzz8listzzz9_a7d460c5baf4290fac22d521d909e7f12}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!first@{first}}
\index{first@{first}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{first()}{first()}}
{\footnotesize\ttfamily auto Qore\+::zzz8listzzz9\+::first (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the first entry in the list. 

\begin{DoxyReturn}{Returns}
the first entry in the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
auto e = l.first();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a89cad7498a6102679b4d2a96d3eceef5}{Qore\+::zzz8listzzz9\+::last()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+5 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_ac8e243d7957d6136a6c77d32f320bf24}\label{class_qore_1_1zzz8listzzz9_ac8e243d7957d6136a6c77d32f320bf24}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!iterator@{iterator}}
\index{iterator@{iterator}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{iterator()}{iterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} Qore\+::zzz8listzzz9\+::iterator (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns a \mbox{\hyperlink{class_qore_1_1_list_iterator}{List\+Iterator}} object for the list. 

\begin{DoxyReturn}{Returns}
a \mbox{\hyperlink{class_qore_1_1_list_iterator}{List\+Iterator}} object for the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
map \mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"+ %y\(\backslash\)n"}, $1), l.iterator();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a5cb7d0b52f91aca98030ec1926beb5c5}\label{class_qore_1_1zzz8listzzz9_a5cb7d0b52f91aca98030ec1926beb5c5}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!join@{join}}
\index{join@{join}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{join()}{join()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::zzz8listzzz9\+::join (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{str }\end{DoxyParamCaption})}



Creates a string from the list and a separator string given as an argument. 

Each element in the list will be converted to a string if necessary to be concatenated to the return value string; additionally if any string argument has a different \mbox{\hyperlink{character_encoding}{character encoding}} than {\itshape str}, then it will be converted to {\itshape str}\textquotesingle{}s \mbox{\hyperlink{character_encoding}{character encoding}} before concatentation to the return value string

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{R\+E\+T\+\_\+\+V\+A\+L\+U\+E\+\_\+\+O\+N\+LY}}
\end{DoxyParagraph}

\begin{DoxyParams}{Parameters}
{\em str} & the separator string\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a string created from a list and a separator string, each element in the list will be present in the return value separated by the separator string; the string returned with have the same \mbox{\hyperlink{character_encoding}{character encoding}} as {\itshape str} 
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
string str = (\textcolor{stringliteral}{"a"}, \textcolor{stringliteral}{"b"}, \textcolor{stringliteral}{"c"}).\mbox{\hyperlink{group__string__functions_ga2470edb3a13437c060ec85e7653e022a}{join}}(\textcolor{stringliteral}{":"}); \textcolor{comment}{# returns "a:b:c"}
\end{DoxyCode}

\end{DoxyParagraph}

\begin{DoxyExceptions}{Exceptions}
{\em E\+N\+C\+O\+D\+I\+N\+G-\/\+C\+O\+N\+V\+E\+R\+S\+I\+O\+N-\/\+E\+R\+R\+OR} & this exception could be thrown if the string arguments have different \mbox{\hyperlink{character_encoding}{character encodings}} and an error occurs during encoding conversion\\
\hline
\end{DoxyExceptions}
\begin{DoxyNote}{Note}
equivalent to join(string, list)
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+5 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a89cad7498a6102679b4d2a96d3eceef5}\label{class_qore_1_1zzz8listzzz9_a89cad7498a6102679b4d2a96d3eceef5}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!last@{last}}
\index{last@{last}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{last()}{last()}}
{\footnotesize\ttfamily auto Qore\+::zzz8listzzz9\+::last (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the last entry in the list. 

\begin{DoxyReturn}{Returns}
the last entry in the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
auto e = l.last();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a7d460c5baf4290fac22d521d909e7f12}{Qore\+::zzz8listzzz9\+::first()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+5 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a66451c32831c9ea7086d2b9fb62df31c}\label{class_qore_1_1zzz8listzzz9_a66451c32831c9ea7086d2b9fb62df31c}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!lsize@{lsize}}
\index{lsize@{lsize}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{lsize()}{lsize()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8listzzz9\+::lsize (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the number of elements in the list. 

For this type, this method is equivalent to \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}{size()}}

\begin{DoxyReturn}{Returns}
the number of elements in the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"iterating %d element%s\(\backslash\)n"}, val.lsize(), val.lsize() == 1 ? \textcolor{stringliteral}{""} : \textcolor{stringliteral}{"s"});
foreach auto element \textcolor{keywordflow}{in} (val) \{
    do\_something(element);
\}
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a4231a2c883ab4c25e87c2e3b23f8ff06}\label{class_qore_1_1zzz8listzzz9_a4231a2c883ab4c25e87c2e3b23f8ff06}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!range\+Iterator@{range\+Iterator}}
\index{range\+Iterator@{range\+Iterator}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{range\+Iterator()}{rangeIterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} Qore\+::zzz8listzzz9\+::range\+Iterator (\begin{DoxyParamCaption}\item[{any}]{val }\end{DoxyParamCaption})}



Returns a \mbox{\hyperlink{class_qore_1_1_range_iterator}{Range\+Iterator}} object for the list elements. 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
map \mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"+ %y\(\backslash\)n"}, $1), l.ranegIterator();
\end{DoxyCode}

\end{DoxyParagraph}

\begin{DoxyParams}{Parameters}
{\em val} & an optional value to be returned instead of the default integer value\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a \mbox{\hyperlink{class_qore_1_1_range_iterator}{Range\+Iterator}} object for the list elements
\end{DoxyReturn}
\begin{DoxySince}{Since}
Qore 0.\+8.\+8 

Qore 0.\+8.\+11.\+1 this pseudo-\/method takes the optional {\itshape val} argument 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}\label{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!size@{size}}
\index{size@{size}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{size()}{size()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8listzzz9\+::size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the number of elements in the list. 

\begin{DoxyReturn}{Returns}
the number of elements in the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int len = l.size();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a926b4daaed4393124315fb78c27f6c45}{Qore\+::zzz8listzzz9\+::sizep()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a926b4daaed4393124315fb78c27f6c45}\label{class_qore_1_1zzz8listzzz9_a926b4daaed4393124315fb78c27f6c45}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!sizep@{sizep}}
\index{sizep@{sizep}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{sizep()}{sizep()}}
{\footnotesize\ttfamily bool Qore\+::zzz8listzzz9\+::sizep (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} since lists can return a non-\/zero size. 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} since lists can return a non-\/zero size
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}{Qore\+::zzz8listzzz9\+::size()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+9 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a6eedcfa07a8f8dcbe75eadcb3e5f607b}\label{class_qore_1_1zzz8listzzz9_a6eedcfa07a8f8dcbe75eadcb3e5f607b}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!type\+Code@{type\+Code}}
\index{type\+Code@{type\+Code}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{type\+Code()}{typeCode()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8listzzz9\+::type\+Code (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__type__code__constants_gada83cf42174092e6f4d28f21f1ce3c2c}{Qore\+::\+N\+T\+\_\+\+L\+I\+ST}}. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__type__code__constants_gada83cf42174092e6f4d28f21f1ce3c2c}{Qore\+::\+N\+T\+\_\+\+L\+I\+ST}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
switch (l.typeCode()) \{
    case NT\_LIST:
        \mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"%y: is a list\(\backslash\)n"}, l);
        \textcolor{keywordflow}{break};
\}
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}\label{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}} 
\index{Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}!val@{val}}
\index{val@{val}!Qore\+::zzz8listzzz9@{Qore\+::zzz8listzzz9}}
\subsubsection{\texorpdfstring{val()}{val()}}
{\footnotesize\ttfamily bool Qore\+::zzz8listzzz9\+::val (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if the list is empty (size = 0), \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if not. 

The opposite of \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_afe120e9df2803e259c83c943152c9063}{Qore\+::zzz8listzzz9\+::empty()}}

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if the list is empty (size = 0), \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if not
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = l.val();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval}}
\item \mbox{\hyperlink{parse_directives_strict-bool-eval}{\%strict-\/bool-\/eval}} 
\end{DoxyItemize}
\end{DoxySeeAlso}
