Skip to content

Commit

Permalink
Breaking Updates:
Browse files Browse the repository at this point in the history
- Removed math namespace
- Removed u32.mlsp()

Features:
- Added ArrayUtils
- Added IteratorUtils

Enhancements:
- Improved performance of ArrayList's addAll() and splice() methods
  • Loading branch information
havelessbemore committed Jun 16, 2021
1 parent 49342f0 commit 6d0ab3d
Show file tree
Hide file tree
Showing 77 changed files with 1,686 additions and 916 deletions.
3 changes: 0 additions & 3 deletions .nycrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"check-coverage": true,
"exclude": [
"src/TODO/**/*"
],
"extension": [".ts", ".tsx"],
"include": [
"src/**/*"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ See [docs/](./docs/README.md) or the [wiki](https://github.com/havelessbemore/da
- [LinkedStack](docs/classes/linkedstack.md)
- [SkewHeap](docs/classes/skewheap.md)

### Utilities
- [ArrayUtils](docs/modules/arrayutils.md)
- [IteratorUtils](docs/modules/iteratorutils.md)
- [NumberUtils](docs/modules/numberutils.md)
- [u32](docs/modules/u32.md)

## Contribute

There are many ways to contribute:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dist/dastal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dastal.min.js.map

Large diffs are not rendered by default.

42 changes: 37 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
dastal - v3.0.0
dastal - v4.0.0

# dastal - v3.0.0
# dastal - v4.0.0

## Table of contents

### Namespaces

- [math](modules/math.md)
- [ArrayUtils](modules/arrayutils.md)
- [IteratorUtils](modules/iteratorutils.md)
- [NumberUtils](modules/numberutils.md)
- [u32](modules/u32.md)

### Classes

Expand All @@ -29,6 +32,7 @@ dastal - v3.0.0
- [AATreeNode](interfaces/aatreenode.md)
- [AVLTreeNode](interfaces/avltreenode.md)
- [BinaryTreeNode](interfaces/binarytreenode.md)
- [Collection](interfaces/collection.md)
- [DoublyLinkedNode](interfaces/doublylinkednode.md)
- [Heap](interfaces/heap.md)
- [LinkedNode](interfaces/linkednode.md)
Expand All @@ -46,6 +50,10 @@ dastal - v3.0.0
- [CombineFn](README.md#combinefn)
- [CompareFn](README.md#comparefn)

### Functions

- [isCollection](README.md#iscollection)

## Type aliases

### CombineFn
Expand Down Expand Up @@ -86,7 +94,7 @@ the inputs, depending on the use case.

#### Defined in

[src/index.ts:21](https://github.com/havelessbemore/dastal/blob/e94627b/src/index.ts#L21)
[src/index.ts:21](https://github.com/havelessbemore/dastal/blob/2fe24da/src/index.ts#L21)

___

Expand Down Expand Up @@ -128,4 +136,28 @@ A function used to determine the order of a set of elements.

#### Defined in

[src/index.ts:33](https://github.com/havelessbemore/dastal/blob/e94627b/src/index.ts#L33)
[src/index.ts:33](https://github.com/havelessbemore/dastal/blob/2fe24da/src/index.ts#L33)

## Functions

### isCollection

**isCollection**(`obj`): obj is Collection<unknown\>

Check if a value is a [Collection](interfaces/collection.md).

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `obj` | `any` | The value to check. |

#### Returns

obj is Collection<unknown\>

- `true` if obj is a Collection, `false` otherwise.

#### Defined in

[src/collection/index.ts:14](https://github.com/havelessbemore/dastal/blob/2fe24da/src/collection/index.ts#L14)
32 changes: 16 additions & 16 deletions docs/classes/aatree.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[dastal - v3.0.0](../README.md) / AATree
[dastal - v4.0.0](../README.md) / AATree

# Class: AATree<T\>

Expand Down Expand Up @@ -75,7 +75,7 @@ Instantiate a tree.

#### Defined in

[src/tree/aaTree.ts:56](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L56)
[src/tree/aaTree.ts:56](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L56)

**new AATree**<T\>(`compareFn`, `allowDuplicates`, `elements?`)

Expand All @@ -97,7 +97,7 @@ Instantiate a tree.

#### Defined in

[src/tree/aaTree.ts:63](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L63)
[src/tree/aaTree.ts:63](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L63)

## Accessors

Expand All @@ -117,7 +117,7 @@ The number of elements in the collection.

#### Defined in

[src/tree/aaTree.ts:183](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L183)
[src/tree/aaTree.ts:183](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L183)

## Methods

Expand All @@ -141,7 +141,7 @@ An iterator through the list

#### Defined in

[src/tree/aaTree.ts:199](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L199)
[src/tree/aaTree.ts:199](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L199)

___

Expand All @@ -167,7 +167,7 @@ Inserts an element into the tree.

#### Defined in

[src/tree/aaTree.ts:87](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L87)
[src/tree/aaTree.ts:87](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L87)

___

Expand All @@ -187,7 +187,7 @@ Removes all elements.

#### Defined in

[src/tree/aaTree.ts:117](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L117)
[src/tree/aaTree.ts:117](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L117)

___

Expand All @@ -205,7 +205,7 @@ ___

#### Defined in

[src/tree/aaTree.ts:122](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L122)
[src/tree/aaTree.ts:122](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L122)

___

Expand All @@ -231,7 +231,7 @@ Delete an element from the tree.

#### Defined in

[src/tree/aaTree.ts:126](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L126)
[src/tree/aaTree.ts:126](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L126)

___

Expand All @@ -257,7 +257,7 @@ Check if an element is in the tree.

#### Defined in

[src/tree/aaTree.ts:139](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L139)
[src/tree/aaTree.ts:139](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L139)

___

Expand All @@ -277,7 +277,7 @@ Get the maximum element.

#### Defined in

[src/tree/aaTree.ts:143](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L143)
[src/tree/aaTree.ts:143](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L143)

___

Expand All @@ -297,7 +297,7 @@ Get the minimum element.

#### Defined in

[src/tree/aaTree.ts:147](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L147)
[src/tree/aaTree.ts:147](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L147)

___

Expand All @@ -317,7 +317,7 @@ Remove the maximum element.

#### Defined in

[src/tree/aaTree.ts:151](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L151)
[src/tree/aaTree.ts:151](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L151)

___

Expand All @@ -337,7 +337,7 @@ Remove the minimum element.

#### Defined in

[src/tree/aaTree.ts:167](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L167)
[src/tree/aaTree.ts:167](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L167)

___

Expand All @@ -359,7 +359,7 @@ Iterate through the tree in sorted order (i.e in-order traversal).

#### Defined in

[src/tree/aaTree.ts:187](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L187)
[src/tree/aaTree.ts:187](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L187)

___

Expand All @@ -386,4 +386,4 @@ Update a specific element.

#### Defined in

[src/tree/aaTree.ts:205](https://github.com/havelessbemore/dastal/blob/e94627b/src/tree/aaTree.ts#L205)
[src/tree/aaTree.ts:205](https://github.com/havelessbemore/dastal/blob/2fe24da/src/tree/aaTree.ts#L205)
Loading

0 comments on commit 6d0ab3d

Please sign in to comment.