Lines Matching refs:Stack
1 # @ohos.util.Stack (Linear Container Stack)
3 **Stack** is implemented based on the array data structure. It follows the principle Last Out First…
5 …ructure and supports insertion at one end and removal at the other end, **Stack** supports inserti…
7 **Recommended use case**: Use **Stack** in LOFI scenarios.
20 import { Stack } from '@kit.ArkTS';
23 ## Stack section
40 A constructor used to create a **Stack** instance.
52 | 10200012 | The Stack's constructor cannot be directly invoked. |
57 let stack : Stack<number | string | Object> = new Stack();
98 let stack : Stack<number | string | C1> = new Stack();
132 let stack : Stack<number> = new Stack();
168 let stack : Stack<number> = new Stack();
209 let stack : Stack<number> = new Stack();
219 forEach(callbackFn: (value: T, index?: number, stack?: Stack<T>) => void,
241 | stack | Stack<T> | No| Instance that calls the **forEach** API. The default value is this i…
255 let stack : Stack<number> = new Stack();
292 let stack : Stack<number> = new Stack();
326 let stack : Stack<number> = new Stack();