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


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




{\ttfamily \#include $<$Pseudo\+\_\+\+QC\+\_\+\+List.\+dox.\+h$>$}



Inheritance diagram for Qore\+::zzz8listzzz9\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=140pt]{class_qore_1_1zzz8listzzz9__inherit__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_aa361b6ecefb8fa38e282becf8001aab1}{complex\+Type}} ()
\begin{DoxyCompactList}\small\item\em returns \doxysectlink{basic_data_types_True}{True}{2} if the list has a \doxysectlink{data_type_declarations_hash_complex_type}{Hash With Declared Value Type}{2}, \doxysectlink{basic_data_types_False}{False}{2} if not \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a323c79bcac8e19a840dce76cd1e7a22b}{contains}} (\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}} arg)
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2} if the list contains arg, \doxysectlink{basic_data_types_False}{False}{2} if it does not. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_afe120e9df2803e259c83c943152c9063}{empty}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2} if the list is empty (size = 0), \doxysectlink{basic_data_types_False}{False}{2} if not. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{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 \doxylink{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}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{str}})
\begin{DoxyCompactList}\small\item\em Creates a string from the list and a separator string given as an argument. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{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_a4483a03f84971f0f3e64dace2de2f737}{range\+Iterator}} (\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}{val}})
\begin{DoxyCompactList}\small\item\em Returns a \doxylink{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 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a926b4daaed4393124315fb78c27f6c45}{sizep}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2} 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 \doxylink{group__type__code__constants_gada83cf42174092e6f4d28f21f1ce3c2c}{Qore\+::\+NT\+\_\+\+LIST}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8listzzz9_a3991ad1c045e6c3db93e672b6509c05e}{val}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2} if the list is empty (size = 0), \doxysectlink{basic_data_types_True}{True}{2} if not. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions inherited from \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9}{Qore\+::zzz8valuezzz9}}}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a3bd7145235f0f4160b29e9ff1a925f4f}{callp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression is a callable value (ie \doxysectlink{expressions_closure}{closures}{1} or \doxysectlink{expressions_call_reference}{call references}{1}) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a3ef4fe2f9389f29e7c53e2cfc4217a97}{complex\+Type}} ()
\begin{DoxyCompactList}\small\item\em returns \doxysectlink{basic_data_types_True}{True}{2} if the value has a complex type, \doxysectlink{basic_data_types_False}{False}{2} if not \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_aa89ad8b046cb41c3588b75e07426696c}{empty}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2}; this method will be reimplemented in container types where it may return \doxysectlink{basic_data_types_False}{False}{2}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_abd777c781935cb8faf3381fcc7ef3e88}{full\+Type}} (\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\+\_\+\+\_\+7\+\_\+}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{with\+\_\+namespaces}})
\begin{DoxyCompactList}\small\item\em returns the full type name which differs from the simple type name in case of complex types and objects \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a6feb7fd9eae7eac19775a47db23ad4e5}{intp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression can be converted to an integer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a16b7eeea1bb08b7c3faa69b2aa602fbb}{iterator}} ()
\begin{DoxyCompactList}\small\item\em Returns an iterator object for the value; the default iterator object returned is \doxylink{class_qore_1_1_single_value_iterator}{Single\+Value\+Iterator}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a6088d2158ce94d0d6c9159a628f79017}{lsize}} ()
\begin{DoxyCompactList}\small\item\em Returns 1; the return value of this method should give the list size of the value, which is normally 1 for non-\/lists (except for \doxysectlink{basic_data_types_nothing}{NOTHING}{1} where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a794caed9de093e89d88bfbe652e15a06}{size}} ()
\begin{DoxyCompactList}\small\item\em Returns zero; this method will be reimplemented in container types where it may return a non-\/zero value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_aefcaa86868b4993dd5b0f91fa7b5c1ad}{sizep}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_True}{True}{2} if the type can return a non-\/zero size (\doxysectlink{basic_data_types_True}{True}{2} for containers including \doxysectlink{basic_data_types_binary}{binary objects}{1} and \doxysectlink{basic_data_types_string}{strings}{1}, \doxysectlink{basic_data_types_False}{False}{2} for everything else) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_af066cf20f6d6a860d209acc7e9e40c20}{strp}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression can be converted to a string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a671b4af222d6351eb969c2b1d710d463}{to\+Bool}} ()
\begin{DoxyCompactList}\small\item\em Returns the boolean representation of the value; the default is \doxysectlink{basic_data_types_False}{False}{2}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga113d18216af1bdb70545081b6a9892ef}{float}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a11505ca76b6e168b1d143b3fc8d1ba60}{to\+Float}} ()
\begin{DoxyCompactList}\small\item\em Returns the floating-\/point representation of the value; the default is 0.\+0. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_aed0897423af7ddcb1ade7df4c4a61364}{to\+Int}} ()
\begin{DoxyCompactList}\small\item\em Returns the integer representation of the value; the default is 0. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gaf6000d64e3fe99ce81b9faaf44b2de4e}{number}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_ad4bcbe12f38c710e0e7e67a68ab0512f}{to\+Number}} ()
\begin{DoxyCompactList}\small\item\em Returns the arbitrary-\/precision numeric representation of the value; the default is 0. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a82c78c7b10d754b7c528126eee07e286}{to\+String}} (\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\+\_\+\+\_\+7\+\_\+}} \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} encoding)
\begin{DoxyCompactList}\small\item\em Returns the string representation of the value; the default is an empty string. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a333453fca3889bfa8d4159b921b1ab87}{type}} ()
\begin{DoxyCompactList}\small\item\em Returns the string type for the value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a5e7d381ab49abebd0d0f045708482512}{type\+Code}} ()
\begin{DoxyCompactList}\small\item\em Returns the type code for the value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} \mbox{\hyperlink{class_qore_1_1zzz8valuezzz9_a3a66486cee14aa073cf90fbed5a23edd}{val}} ()
\begin{DoxyCompactList}\small\item\em Returns \doxysectlink{basic_data_types_False}{False}{2}; this method is reimplemented in other types and will return \doxysectlink{basic_data_types_True}{True}{2} if the given expression has a non-\/empty value. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Methods in this pseudo-\/class can be executed on \doxysectlink{container_data_types_list}{lists}{1}. 

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



returns \doxysectlink{basic_data_types_True}{True}{2} if the list has a \doxysectlink{data_type_declarations_hash_complex_type}{Hash With Declared Value Type}{2}, \doxysectlink{basic_data_types_False}{False}{2} if not 

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\doxysectlink{basic_data_types_True}{True}{2} if the list has a \doxysectlink{data_type_declarations_hash_complex_type}{Hash With Declared Value Type}{2}, \doxysectlink{basic_data_types_False}{False}{2} if not
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \doxylink{class_qore_1_1zzz8valuezzz9_abd777c781935cb8faf3381fcc7ef3e88}{Qore\+::zzz8valuezzz9\+::full\+Type()}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+13 
\end{DoxySince}
\Hypertarget{class_qore_1_1zzz8listzzz9_a323c79bcac8e19a840dce76cd1e7a22b}\label{class_qore_1_1zzz8listzzz9_a323c79bcac8e19a840dce76cd1e7a22b} 
\index{Qore::zzz8listzzz9@{Qore::zzz8listzzz9}!contains@{contains}}
\index{contains@{contains}!Qore::zzz8listzzz9@{Qore::zzz8listzzz9}}
\doxysubsubsection{\texorpdfstring{contains()}{contains()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} Qore\+::zzz8listzzz9\+::contains (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}}}]{arg }\end{DoxyParamCaption})}



Returns \doxysectlink{basic_data_types_True}{True}{2} if the list contains arg, \doxysectlink{basic_data_types_False}{False}{2} if it does not. 

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

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}{1}
\end{DoxyParagraph}

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

\begin{DoxyCode}{0}
\DoxyCodeLine{list<int>\ l\ =\ (1,\ 2,\ 3);}
\DoxyCodeLine{bool\ b\ =\ l.contains(5);\ \textcolor{comment}{\#\ returns\ False}}

\end{DoxyCode}
 
\end{DoxyParagraph}
\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}}
\doxysubsubsection{\texorpdfstring{empty()}{empty()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} Qore\+::zzz8listzzz9\+::empty (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxysectlink{basic_data_types_True}{True}{2} if the list is empty (size = 0), \doxysectlink{basic_data_types_False}{False}{2} if not. 

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

\begin{DoxyReturn}{Returns}
\doxysectlink{basic_data_types_True}{True}{2} if the list is empty (size = 0), \doxysectlink{basic_data_types_False}{False}{2} if not
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{bool\ b\ =\ l.empty();}

\end{DoxyCode}
 
\end{DoxyParagraph}
\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}}
\doxysubsubsection{\texorpdfstring{first()}{first()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{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\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\doxylink{class_qore_1_1zzz8listzzz9_a89cad7498a6102679b4d2a96d3eceef5}{Qore\+::zzz8listzzz9\+::last()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+5 
\end{DoxySince}
\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}}
\doxysubsubsection{\texorpdfstring{iterator()}{iterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} Qore\+::zzz8listzzz9\+::iterator (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



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

\begin{DoxyReturn}{Returns}
a \doxylink{class_qore_1_1_list_iterator}{List\+Iterator} object for the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySince}{Since}
Qore 0.\+8.\+6 
\end{DoxySince}
\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}}
\doxysubsubsection{\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 \doxylink{character_encoding}{character encoding} than {\itshape str}, then it will be converted to {\itshape str}\textquotesingle{}s \doxylink{character_encoding}{character encoding} before concatentation to the return value string

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}{1}
\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 \doxylink{character_encoding}{character encoding} as {\itshape str} 
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

\end{DoxyParagraph}

\begin{DoxyExceptions}{Exceptions}
{\em ENCODING-\/\+CONVERSION-\/\+ERROR} & this exception could be thrown if the string arguments have different \doxylink{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}
\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}}
\doxysubsubsection{\texorpdfstring{last()}{last()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{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\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\doxylink{class_qore_1_1zzz8listzzz9_a7d460c5baf4290fac22d521d909e7f12}{Qore\+::zzz8listzzz9\+::first()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+5 
\end{DoxySince}
\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}}
\doxysubsubsection{\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 \doxylink{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}{size()}

\begin{DoxyReturn}{Returns}
the number of elements in the list
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{printf(\textcolor{stringliteral}{"{}iterating\ \%d\ element\%s\(\backslash\)n"{}},\ val.lsize(),\ val.lsize()\ ==\ 1\ ?\ \textcolor{stringliteral}{"{}"{}}\ :\ \textcolor{stringliteral}{"{}s"{}});}
\DoxyCodeLine{foreach\ auto\ element\ \textcolor{keywordflow}{in}\ (val)\ \{}
\DoxyCodeLine{\ \ \ \ do\_something(element);}
\DoxyCodeLine{\}}

\end{DoxyCode}
 
\end{DoxyParagraph}
\Hypertarget{class_qore_1_1zzz8listzzz9_a4483a03f84971f0f3e64dace2de2f737}\label{class_qore_1_1zzz8listzzz9_a4483a03f84971f0f3e64dace2de2f737} 
\index{Qore::zzz8listzzz9@{Qore::zzz8listzzz9}!rangeIterator@{rangeIterator}}
\index{rangeIterator@{rangeIterator}!Qore::zzz8listzzz9@{Qore::zzz8listzzz9}}
\doxysubsubsection{\texorpdfstring{rangeIterator()}{rangeIterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qore_1_1_abstract_iterator}{Abstract\+Iterator}} Qore\+::zzz8listzzz9\+::range\+Iterator (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{auto}}}]{val }\end{DoxyParamCaption})}



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

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{map\ 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 \doxylink{class_qore_1_1_range_iterator}{Range\+Iterator} object for the list elements
\end{DoxyReturn}
\begin{DoxySince}{Since}

\begin{DoxyItemize}
\item Qore 0.\+8.\+8
\item Qore 0.\+8.\+11.\+1 this pseudo-\/method takes the optional {\itshape val} argument 
\end{DoxyItemize}
\end{DoxySince}
\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}}
\doxysubsubsection{\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\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\doxylink{class_qore_1_1zzz8listzzz9_a926b4daaed4393124315fb78c27f6c45}{Qore\+::zzz8listzzz9\+::sizep()} 
\end{DoxySeeAlso}
\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}}
\doxysubsubsection{\texorpdfstring{sizep()}{sizep()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} Qore\+::zzz8listzzz9\+::sizep (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxysectlink{basic_data_types_True}{True}{2} since lists can return a non-\/zero size. 

\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
\doxysectlink{basic_data_types_True}{True}{2} since lists can return a non-\/zero size
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{class_qore_1_1zzz8listzzz9_aeabf006f28c9c1a7815a324329ab3b2f}{Qore\+::zzz8listzzz9\+::size()}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+9 
\end{DoxySince}
\Hypertarget{class_qore_1_1zzz8listzzz9_a6eedcfa07a8f8dcbe75eadcb3e5f607b}\label{class_qore_1_1zzz8listzzz9_a6eedcfa07a8f8dcbe75eadcb3e5f607b} 
\index{Qore::zzz8listzzz9@{Qore::zzz8listzzz9}!typeCode@{typeCode}}
\index{typeCode@{typeCode}!Qore::zzz8listzzz9@{Qore::zzz8listzzz9}}
\doxysubsubsection{\texorpdfstring{typeCode()}{typeCode()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8listzzz9\+::type\+Code (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxylink{group__type__code__constants_gada83cf42174092e6f4d28f21f1ce3c2c}{Qore\+::\+NT\+\_\+\+LIST}. 

\begin{DoxyReturn}{Returns}
\doxylink{group__type__code__constants_gada83cf42174092e6f4d28f21f1ce3c2c}{Qore\+::\+NT\+\_\+\+LIST}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}{0}
\DoxyCodeLine{switch\ (l.typeCode())\ \{}
\DoxyCodeLine{\ \ \ \ case\ NT\_LIST:}
\DoxyCodeLine{\ \ \ \ \ \ \ \ printf(\textcolor{stringliteral}{"{}\%y:\ is\ a\ list\(\backslash\)n"{}},\ l);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{\}}

\end{DoxyCode}
 
\end{DoxyParagraph}
\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}}
\doxysubsubsection{\texorpdfstring{val()}{val()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{bool}} Qore\+::zzz8listzzz9\+::val (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \doxysectlink{basic_data_types_False}{False}{2} if the list is empty (size = 0), \doxysectlink{basic_data_types_True}{True}{2} if not. 

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

\begin{DoxyReturn}{Returns}
\doxysectlink{basic_data_types_False}{False}{2} if the list is empty (size = 0), \doxysectlink{basic_data_types_True}{True}{2} if not
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\doxysectlink{code_flags_CONSTANT}{CONSTANT}{1}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

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

\end{DoxyCode}

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

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