new Stack(eqCompareropt)
Creates a new, empty Stack.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eqComparer |
EqualityComparer.<T> |
<optional> |
Optional. Defaults To EqualityComparer |
- Source:
Members
observablePop :Observable.<T>
Type:
- Observable.<T>
- Source:
observablePopBottom :Observable.<T>
Type:
- Observable.<T>
- Source:
observablePush :Observable.<T>
Type:
- Observable.<T>
- Source:
Methods
peek() → {T}
- Source:
Throws:
-
If the Stack is empty.
- Type
- Error
Returns:
The item on top of the Stack without popping it.
- Type
- T
peekBottom() → {T}
- Source:
Throws:
-
If the Stack is empty.
- Type
- Error
Returns:
The item at the bottom of the Stack without popping it.
- Type
- T
pop() → {T}
- Source:
Throws:
-
If the Stack is empty.
- Type
- Error
Returns:
The item at the top of the Stack (the item
inserted last).
- Type
- T
popBottom() → {T}
- Source:
Throws:
-
If the Stack is empty.
- Type
- Error
Returns:
The item at the bottom of the Stack (the item
inserted first).
- Type
- T
push(item) → {this}
Push an item to the top of the Stack.
Parameters:
Name | Type | Description |
---|---|---|
item |
T |
- Source:
Returns:
- Type
- this