api/classes/stack
Globals / Stack
Class: Stack<A>
Type parameters
Name |
---|
A |
Hierarchy
- Stack
Index
Accessors
Methods
Accessors
top
• get top(): A | undefined
Defined in packages/core/lib/internals/Stack.ts:5
Returns: A | undefined
Methods
isEmpty
▸ isEmpty(): boolean
Defined in packages/core/lib/internals/Stack.ts:16
Returns: boolean
pop
▸ pop(): A | undefined
Defined in packages/core/lib/internals/Stack.ts:19
Returns: A | undefined
push
▸ push(a
: A): void
Defined in packages/core/lib/internals/Stack.ts:29
Parameters:
Name | Type |
---|---|
a | A |
Returns: void