Lines Matching refs:element

31 | Create| add(element: T) | // Add an item to the end of the data.|
32 | Create| insert(element: T, index: number) | * Inserts a value to a specified index.|
37 | Delete| remove(element: T) | Deletes the first matched element.|
52 | Create| add(element: T) | // Add an item to the end of the data.|
53 | Create| insert(element: T, index: number) | * Inserts a value to a specified index.|
54 | Read| get(index: number) | Obtains the element corresponding to the specified index.|
55 | Read| list\[index: number] | Obtains the element corresponding to the specified index position. H…
56 | Read| getFirst() | Obtains the first element.|
57 | Read| getLast() | Obtaining the last element|
58 | Read| getIndexOf(element: T) | Obtains the position of the first element that matches the specifi…
59 | Read| getLastIndexOf(element: T) | Obtains the position of the last element that matches the spec…
62 | Update| set(index:number, element: T) | Changes the value of an element with a specified index to…
63 | Update| list\[index] = element | Changes the value of an element at the specified index position …
65 | Delete| remove(element: T) | Deletes the first matched element.|
66 | Delete| removeByIndex(index:number) | Deletes the element corresponding to the index position.|
82 | Create| add(element: T) | // Add an item to the end of the data.|
83 | Create| insert(element: T, index: number) | * Inserts a value to a specified index.|
84 | Read| get(index: number) | Obtains the element corresponding to the specified index.|
85 | Read| list\[index: number] | Obtains the element corresponding to the specified index position. H…
86 | Read| getFirst() | Obtains the first element.|
87 | Read| getLast() | Obtaining the last element|
88 | Read| getIndexOf(element: T) | Obtains the position of the first element that matches the specifi…
89 | Read| getLastIndexOf(element: T) | Obtains the position of the last element that matches the spec…
92 | Update| set(index:number, element: T) | Changes the value of an element with a specified index to…
93 | Update| list\[index] = element | Changes the value of an element at the specified index position …
94 | Delete| remove(element: T) | Deletes the first matched element.|
95 | Delete| removeByIndex(index:number) | Deletes the element corresponding to the index position.|
113 | Create| insertFront(element: T) | Adds an element to the header.|
114 | Create| insertEnd(element: T) | Adds an element to the end.|
115 | Read| getFirst() | Obtains the first element and does not dequeue the element.|
116 | Read| getLast() | Obtains the last element and does not dequeue the element.|
117 | Read| popFirst() | Obtains the first element and dequeues it.|
118 | Read| popLast() | Obtains the last element and dequeues it.|
122 | Delete| popFirst() | Dequeues and deletes the head element.|
123 | Delete| popLast() | Dequeues and deletes the tail element.|
141 | Create| add(element: T) | Adds an element to the end.|
142 | Read| getFirst() | Obtains the head element of a queue and does not dequeue the element.|
143 | Read| pop() | Obtains the head element and dequeues it.|
147 | Delete| pop() | Dequeues and deletes the head element.|
163 | Create| push(item: T) | Adds an element to the top of the stack.|
164 | Read| peek() | Obtains the top element of the stack and does not dequeue the element.|
165 | Read| pop() | Obtains the top element of the stack and dequeues it.|
166 | Read| locate(element: T) | Obtains the position of an element.|
170 | Delete| pop() | Dequeues and deletes the top element from the stack.|
186 | Create| add(element: T) | // Add an item to the end of the data.|
187 | Create| insert(element: T, index: number) | * Inserts a value to a specified index.|
188 | Read| get(index: number) | Obtains the element corresponding to the specified index.|
189 … number] | Obtains the element corresponding to the specified index position. The access speed is …
190 | Read| getFirst() | Obtains the first element.|
191 | Read| getLastElement() | Obtaining the last element|
192 | Read| getIndexOf(element: T) | Obtains the position of the first element that matches the specifi…
193 | Read| getLastIndexOf(element: T) | Obtains the position of the last element that matches the spec…
196 | Update| set(index:number, element: T) | Changes the value of an element with a specified index to…
197 | Update| vec\[index] = element | Changes the value of an element with a specified index to element
200 | Delete| remove(element: T) | Deletes the first matched element.|
201 | Delete| removeByIndex(index:number) | Deletes the element corresponding to the index position.|
214 arrayList1.add ('a'); // Add an element whose value is'a'.
216 arrayList2.add (1); // Add an element whose value is 1.
217 console.info ('result: ${arrayList2[0]}'); // Access the element whose index is 0. Output: result: 1
218 arrayList1[0] = 'one'; // Modify the element whose index is 0.
225 deque1.insertFront ('a'); // Add an element whose value is'a' to the header.
227 deque2.insertFront (1); // Add an element whose value is 1 to the header.
228 console.info ('result: ${deque2.getFirst () }'); // Access the element in the queue header. Output:…
229 deque1.insertEnd ('one'); // Add an element whose value is'one' to the end.
230 console.info ('result: ${deque1.getLast () }'); // Access the element at the end of the queue. Outp…
236 stack1.push ('a'); // Add an element whose value is'a' to the stack.
238 stack2.push (1); // Add an element whose value is 1 to the stack.
239 console.info ('result: ${stack1.peek () }'); // Access the top element of the stack. Output: result…
240 …o ('result: ${stack2.pop () }'); // Delete the top element of the stack and return the deleted ele…
247 list1.add ('a'); // Add an element whose value is'a'.
249 list2.insert (0, 0); // Insert (add) an element whose value is 0 at position 0.
252 list3.add (b2); // Add an element of the Array type.
253 console.info ('result: ${list1[0]}'); // Access the element whose index is 0. Output: result: a
254 console.info ('result: ${list3.get (0) }'); // Access the element whose index is 0. Output: result:…