Skip to content

Commit

Permalink
feat: adds cmp and eq for TypedSequence
Browse files Browse the repository at this point in the history
  • Loading branch information
OctoD committed Jul 13, 2023
1 parent 5743591 commit 93c32d9
Show file tree
Hide file tree
Showing 23 changed files with 1,138 additions and 543 deletions.
154 changes: 77 additions & 77 deletions docs/modules/Arr.md

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/modules/Assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Assert.check(false, 'yup it throws') // throws

#### Defined in

[src/Assert.ts:28](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L28)
[src/Assert.ts:28](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L28)

**check**(`a`): [`Unary`](Fn.md#unary)<`boolean`, `void`\>

Expand Down Expand Up @@ -88,7 +88,7 @@ the unary function which returns

#### Defined in

[src/Assert.ts:51](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L51)
[src/Assert.ts:51](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L51)

___

Expand Down Expand Up @@ -129,7 +129,7 @@ Assert.checkResult('yup it throws')(false) // Error("yup it throws")

#### Defined in

[src/Assert.ts:92](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L92)
[src/Assert.ts:92](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L92)

**checkResult**(`a`): [`Unary`](Fn.md#unary)<`boolean`, [`T`](Result.md#t)<`boolean`\>\>

Expand Down Expand Up @@ -165,7 +165,7 @@ the unary function which returns

#### Defined in

[src/Assert.ts:112](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L112)
[src/Assert.ts:112](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L112)

___

Expand Down Expand Up @@ -215,7 +215,7 @@ the asserting unary function which returns

#### Defined in

[src/Assert.ts:158](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L158)
[src/Assert.ts:158](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L158)

**make**<`a`\>(`p`): [`Unary`](Fn.md#unary)<[`T`](Predicate.md#t)<`a`\>, [`Unary`](Fn.md#unary)<`a`, `void`\>\>

Expand Down Expand Up @@ -260,7 +260,7 @@ the asserting unary function which returns

#### Defined in

[src/Assert.ts:182](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L182)
[src/Assert.ts:182](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L182)

___

Expand Down Expand Up @@ -311,7 +311,7 @@ the asserting function which returns

#### Defined in

[src/Assert.ts:218](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L218)
[src/Assert.ts:218](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L218)

**makeResult**<`A`\>(`p`): [`Unary`](Fn.md#unary)<[`T`](Predicate.md#t)<`A`\>, [`Unary`](Fn.md#unary)<`A`, [`T`](Result.md#t)<`boolean`\>\>\>

Expand Down Expand Up @@ -356,4 +356,4 @@ the asserting unary function which returns

#### Defined in

[src/Assert.ts:242](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Assert.ts#L242)
[src/Assert.ts:242](https://github.com/OctoD/tiinvo/blob/5743591/src/Assert.ts#L242)
66 changes: 33 additions & 33 deletions docs/modules/BigInt.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Represents a very large integer.

#### Defined in

[src/BigInt.ts:10](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L10)
[src/BigInt.ts:10](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L10)

## Guards

Expand Down Expand Up @@ -96,7 +96,7 @@ returns true if is a bigint, false otherwise

#### Defined in

[src/BigInt.ts:31](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L31)
[src/BigInt.ts:31](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L31)

## Comparables

Expand Down Expand Up @@ -137,7 +137,7 @@ BigInt.cmp(0n, 1n) // -1

#### Defined in

[src/BigInt.ts:59](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L59)
[src/BigInt.ts:59](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L59)

**cmp**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`ComparableResult`](Functors.md#comparableresult)\>

Expand Down Expand Up @@ -173,7 +173,7 @@ the unary function

#### Defined in

[src/BigInt.ts:81](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L81)
[src/BigInt.ts:81](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L81)

___

Expand Down Expand Up @@ -212,7 +212,7 @@ true if two bigints are equal

#### Defined in

[src/BigInt.ts:111](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L111)
[src/BigInt.ts:111](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L111)

**eq**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), `boolean`\>

Expand Down Expand Up @@ -248,7 +248,7 @@ the unary function

#### Defined in

[src/BigInt.ts:132](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L132)
[src/BigInt.ts:132](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L132)

## Mappables

Expand Down Expand Up @@ -295,7 +295,7 @@ the mapped value or TypeError if `a` is not a `bigint`

#### Defined in

[src/BigInt.ts:169](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L169)
[src/BigInt.ts:169](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L169)

**map**<`A`\>(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](Result.md#t)<`A`\>\>

Expand Down Expand Up @@ -337,7 +337,7 @@ the unary function

#### Defined in

[src/BigInt.ts:191](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L191)
[src/BigInt.ts:191](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L191)

___

Expand Down Expand Up @@ -382,7 +382,7 @@ toHex("a") // "0x0"

#### Defined in

[src/BigInt.ts:226](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L226)
[src/BigInt.ts:226](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L226)

**mapOr**<`A`\>(`a`, `m`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), `A`\>

Expand Down Expand Up @@ -424,7 +424,7 @@ the unary function

#### Defined in

[src/BigInt.ts:248](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L248)
[src/BigInt.ts:248](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L248)

## Operables

Expand Down Expand Up @@ -466,7 +466,7 @@ the result

#### Defined in

[src/BigInt.ts:288](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L288)
[src/BigInt.ts:288](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L288)

**add**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -498,7 +498,7 @@ add5(10n) // 15n

#### Defined in

[src/BigInt.ts:307](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L307)
[src/BigInt.ts:307](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L307)

___

Expand Down Expand Up @@ -536,7 +536,7 @@ the result

#### Defined in

[src/BigInt.ts:336](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L336)
[src/BigInt.ts:336](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L336)

**div**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -569,7 +569,7 @@ the unary function

#### Defined in

[src/BigInt.ts:354](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L354)
[src/BigInt.ts:354](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L354)

___

Expand Down Expand Up @@ -607,7 +607,7 @@ the remainder

#### Defined in

[src/BigInt.ts:383](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L383)
[src/BigInt.ts:383](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L383)

**mod**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -642,7 +642,7 @@ the unary function

#### Defined in

[src/BigInt.ts:403](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L403)
[src/BigInt.ts:403](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L403)

___

Expand Down Expand Up @@ -680,7 +680,7 @@ the result

#### Defined in

[src/BigInt.ts:432](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L432)
[src/BigInt.ts:432](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L432)

**mul**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -714,7 +714,7 @@ the unary function

#### Defined in

[src/BigInt.ts:451](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L451)
[src/BigInt.ts:451](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L451)

___

Expand Down Expand Up @@ -752,7 +752,7 @@ the result

#### Defined in

[src/BigInt.ts:480](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L480)
[src/BigInt.ts:480](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L480)

**pow**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -784,7 +784,7 @@ pow5(10n) // 100_000n

#### Defined in

[src/BigInt.ts:497](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L497)
[src/BigInt.ts:497](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L497)

___

Expand Down Expand Up @@ -821,7 +821,7 @@ BigInt.root(9n, 2n) // 3n

#### Defined in

[src/BigInt.ts:526](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L526)
[src/BigInt.ts:526](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L526)

**root**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -856,7 +856,7 @@ the unary function

#### Defined in

[src/BigInt.ts:546](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L546)
[src/BigInt.ts:546](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L546)

___

Expand Down Expand Up @@ -894,7 +894,7 @@ a - b

#### Defined in

[src/BigInt.ts:588](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L588)
[src/BigInt.ts:588](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L588)

**sub**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`T`](BigInt.md#t)\>

Expand Down Expand Up @@ -929,7 +929,7 @@ the unary function (b - a)

#### Defined in

[src/BigInt.ts:608](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L608)
[src/BigInt.ts:608](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L608)

## Sortables

Expand Down Expand Up @@ -973,7 +973,7 @@ the result:

#### Defined in

[src/BigInt.ts:647](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L647)
[src/BigInt.ts:647](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L647)

**asc**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`ComparableResult`](Functors.md#comparableresult)\>

Expand Down Expand Up @@ -1007,7 +1007,7 @@ the comparator unary function

#### Defined in

[src/BigInt.ts:666](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L666)
[src/BigInt.ts:666](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L666)

___

Expand Down Expand Up @@ -1052,7 +1052,7 @@ the result:

#### Defined in

[src/BigInt.ts:702](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L702)
[src/BigInt.ts:702](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L702)

**desc**(`a`): [`Unary`](Fn.md#unary)<[`T`](BigInt.md#t), [`ComparableResult`](Functors.md#comparableresult)\>

Expand All @@ -1068,7 +1068,7 @@ the result:

#### Defined in

[src/BigInt.ts:703](https://github.com/OctoD/tiinvo/blob/5779ed4/src/BigInt.ts#L703)
[src/BigInt.ts:703](https://github.com/OctoD/tiinvo/blob/5743591/src/BigInt.ts#L703)

## Serializables

Expand Down Expand Up @@ -1106,7 +1106,7 @@ the binary bigint value

#### Defined in

[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Fn.ts#L22)
[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5743591/src/Fn.ts#L22)

___

Expand Down Expand Up @@ -1144,7 +1144,7 @@ the hexadecimal bigint value

#### Defined in

[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Fn.ts#L22)
[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5743591/src/Fn.ts#L22)

___

Expand Down Expand Up @@ -1182,7 +1182,7 @@ the octal bigint value

#### Defined in

[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Fn.ts#L22)
[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5743591/src/Fn.ts#L22)

___

Expand Down Expand Up @@ -1220,7 +1220,7 @@ the json bigint value

#### Defined in

[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Fn.ts#L22)
[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5743591/src/Fn.ts#L22)

___

Expand Down Expand Up @@ -1258,4 +1258,4 @@ the string

#### Defined in

[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Fn.ts#L22)
[src/Fn.ts:22](https://github.com/OctoD/tiinvo/blob/5743591/src/Fn.ts#L22)
8 changes: 4 additions & 4 deletions docs/modules/Bool.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let x: Bool.T = true;

#### Defined in

[src/Bool.ts:17](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Bool.ts#L17)
[src/Bool.ts:17](https://github.com/OctoD/tiinvo/blob/5743591/src/Bool.ts#L17)

## Functions

Expand Down Expand Up @@ -78,7 +78,7 @@ x is boolean

#### Defined in

[src/Functors.ts:338](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Functors.ts#L338)
[src/Functors.ts:338](https://github.com/OctoD/tiinvo/blob/5743591/src/Functors.ts#L338)

___

Expand Down Expand Up @@ -115,7 +115,7 @@ Bool.flip(true) // false

#### Defined in

[src/Functors.ts:465](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Functors.ts#L465)
[src/Functors.ts:465](https://github.com/OctoD/tiinvo/blob/5743591/src/Functors.ts#L465)

## Serializables

Expand Down Expand Up @@ -153,4 +153,4 @@ Bool.toNumber(false) // 0

#### Defined in

[src/Bool.ts:83](https://github.com/OctoD/tiinvo/blob/5779ed4/src/Bool.ts#L83)
[src/Bool.ts:83](https://github.com/OctoD/tiinvo/blob/5743591/src/Bool.ts#L83)
Loading

0 comments on commit 93c32d9

Please sign in to comment.