dastal - v5.0.0
- AATree
- AVLTree
- ArrayList
- ArrayQueue
- ArrayStack
- BinaryHeap
- DoublyLinkedList
- InOrderSegmentTree
- LevelOrderSegmentTree
- LinkedList
- LinkedQueue
- LinkedStack
- SkewHeap
- AATreeNode
- AVLTreeNode
- BinaryTreeNode
- Collection
- DoublyLinkedNode
- Heap
- LinkedNode
- List
- Queue
- SegmentTree
- Sortable
- Sorted
- SortedTree
- Stack
- Tree
Ƭ CombineFn<T, K>: (a
: T
, b
: T
) => K
Name | Type |
---|---|
T |
T |
K |
K = T |
▸ (a
, b
): K
A function that combines two elements into another. The output may or may not be of the same type as the inputs, depending on the use case.
Name | Type | Description |
---|---|---|
a |
T |
The first element |
b |
T |
The second element |
K
The combination of the given elements
Ƭ CompareFn<T>: (a
: T
, b
: T
) => number
Name |
---|
T |
▸ (a
, b
): number
A function used to determine the order of a set of elements.
Name | Type | Description |
---|---|---|
a |
T |
The first element |
b |
T |
The second element |
number
- A negative value if a < b
- Zero if a == b
- A positive value if a > b
▸ isCollection(obj
): obj is Collection<unknown>
Check if a value is a Collection.
Name | Type | Description |
---|---|---|
obj |
any |
The value to check. |
obj is Collection<unknown>
true
if obj is a Collection,false
otherwise.