Qore Programming Language Reference Manual  0.8.12.3
Pseudo_QC_List.dox.h
1 namespace Qore {
4 /***/
5 class <list> : public <value> {
6 
7 public:
9 
25 bool contains(any arg);
26 
27 public:
29 
41 bool empty();
42 
43 public:
45 
59 any first();
60 
61 public:
63 
76 
77 public:
79 
99 string join(string str);
100 
101 public:
103 
117 any last();
118 
119 public:
121 
136 int lsize();
137 
138 public:
140 
156 
157 public:
159 
171 int size();
172 
173 public:
175 
184 bool sizep();
185 
186 public:
188 
202 int typeCode();
203 
204 public:
206 
222 bool val();
223 };
224 };
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:5
int typeCode()
Returns Qore::NT_LIST.
AbstractIterator rangeIterator(any val)
Returns a RangeIterator object for the list elements.
bool contains(any arg)
Returns True if the list contains arg, False if it does not.
int lsize()
Returns the number of elements in the list.
bool sizep()
Returns True since lists can return a non-zero size.
AbstractIterator iterator()
Returns a ListIterator object for the list.
any first()
Returns the first entry in the list.
any last()
Returns the last entry in the list.
Methods in this pseudo-class can be executed on lists.
Definition: Pseudo_QC_List.dox.h:5
int size()
Returns the number of elements in the list.
string join(string str)
Creates a string from the list and a separator string given as an argument.
bool empty()
Returns True if the list is empty (size = 0), False if not.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
bool val()
Returns False if the list is empty (size = 0), True if not.
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10