Skip to content

Commit

Permalink
docs: add getFoldableWithIndex to folding category
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Oct 5, 2022
1 parent 92f51d5 commit 102f898
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 54 deletions.
22 changes: 11 additions & 11 deletions docs/modules/Map.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Added in v2.0.0
- [foldMap](#foldmap)
- [foldMapWithIndex](#foldmapwithindex)
- [getFoldable](#getfoldable)
- [getFoldableWithIndex](#getfoldablewithindex)
- [reduce](#reduce)
- [reduceRight](#reduceright)
- [reduceRightWithIndex](#reducerightwithindex)
Expand All @@ -37,7 +38,6 @@ Added in v2.0.0
- [Functor](#functor)
- [getDifferenceMagma](#getdifferencemagma)
- [getEq](#geteq)
- [getFoldableWithIndex](#getfoldablewithindex)
- [getIntersectionSemigroup](#getintersectionsemigroup)
- [getMonoid](#getmonoid)
- [getShow](#getshow)
Expand Down Expand Up @@ -241,6 +241,16 @@ export declare const getFoldable: <K>(O: Ord<K>) => Foldable2C<'Map', K>

Added in v2.11.0

## getFoldableWithIndex

**Signature**

```ts
export declare const getFoldableWithIndex: <K>(O: Ord<K>) => FoldableWithIndex2C<'Map', K, K>
```

Added in v2.10.0

## reduce

**Signature**
Expand Down Expand Up @@ -335,16 +345,6 @@ export declare const getEq: <K, A>(SK: Eq<K>, SA: Eq<A>) => Eq<Map<K, A>>

Added in v2.0.0

## getFoldableWithIndex

**Signature**

```ts
export declare const getFoldableWithIndex: <K>(O: Ord<K>) => FoldableWithIndex2C<'Map', K, K>
```

Added in v2.10.0

## getIntersectionSemigroup

**Signature**
Expand Down
22 changes: 11 additions & 11 deletions docs/modules/ReadonlyMap.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Added in v2.5.0
- [foldMap](#foldmap)
- [foldMapWithIndex](#foldmapwithindex)
- [getFoldable](#getfoldable)
- [getFoldableWithIndex](#getfoldablewithindex)
- [reduce](#reduce)
- [reduceRight](#reduceright)
- [reduceRightWithIndex](#reducerightwithindex)
Expand All @@ -43,7 +44,6 @@ Added in v2.5.0
- [Functor](#functor)
- [getDifferenceMagma](#getdifferencemagma)
- [getEq](#geteq)
- [getFoldableWithIndex](#getfoldablewithindex)
- [getFunctorWithIndex](#getfunctorwithindex)
- [getIntersectionSemigroup](#getintersectionsemigroup)
- [getMonoid](#getmonoid)
Expand Down Expand Up @@ -321,6 +321,16 @@ export declare const getFoldable: <K>(O: Ord<K>) => Foldable2C<'ReadonlyMap', K>

Added in v2.10.0

## getFoldableWithIndex

**Signature**

```ts
export declare const getFoldableWithIndex: <K>(O: Ord<K>) => FoldableWithIndex2C<'ReadonlyMap', K, K>
```

Added in v2.10.0

## reduce

**Signature**
Expand Down Expand Up @@ -417,16 +427,6 @@ export declare function getEq<K, A>(SK: Eq<K>, SA: Eq<A>): Eq<ReadonlyMap<K, A>>

Added in v2.5.0

## getFoldableWithIndex

**Signature**

```ts
export declare const getFoldableWithIndex: <K>(O: Ord<K>) => FoldableWithIndex2C<'ReadonlyMap', K, K>
```

Added in v2.10.0

## getFunctorWithIndex

**Signature**
Expand Down
28 changes: 14 additions & 14 deletions docs/modules/ReadonlyRecord.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Added in v2.5.0
- [folding](#folding)
- [foldMap](#foldmap)
- [getFoldable](#getfoldable)
- [getFoldableWithIndex](#getfoldablewithindex)
- [reduce](#reduce)
- [reduceRight](#reduceright)
- [instances](#instances)
Expand All @@ -49,7 +50,6 @@ Added in v2.5.0
- [FunctorWithIndex](#functorwithindex)
- [getDifferenceMagma](#getdifferencemagma)
- [getEq](#geteq)
- [getFoldableWithIndex](#getfoldablewithindex)
- [getIntersectionSemigroup](#getintersectionsemigroup)
- [getMonoid](#getmonoid)
- [getShow](#getshow)
Expand Down Expand Up @@ -554,6 +554,19 @@ export declare const getFoldable: (O: Ord<string>) => Foldable1<URI>

Added in v2.11.0

## getFoldableWithIndex

Produces a `FoldableWithIndex1` instance for a `ReadonlyRecord`, using the
provided `Ord` to sort the `ReadonlyRecord`'s entries by key.

**Signature**

```ts
export declare const getFoldableWithIndex: (O: Ord<string>) => FoldableWithIndex1<URI, string>
```

Added in v2.11.0

## reduce

Reduces a `ReadonlyRecord` passing each value to the iterating function.
Expand Down Expand Up @@ -711,19 +724,6 @@ assert.deepStrictEqual(eq.equals({ a: 'foo' }, { a: 'foo' }), true)

Added in v2.5.0

## getFoldableWithIndex

Produces a `FoldableWithIndex1` instance for a `ReadonlyRecord`, using the
provided `Ord` to sort the `ReadonlyRecord`'s entries by key.

**Signature**

```ts
export declare const getFoldableWithIndex: (O: Ord<string>) => FoldableWithIndex1<URI, string>
```

Added in v2.11.0

## getIntersectionSemigroup

Given a `Semigroup` in the base type, it produces a `Semigroup`
Expand Down
28 changes: 14 additions & 14 deletions docs/modules/Record.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Added in v2.0.0
- [folding](#folding)
- [foldMap](#foldmap)
- [getFoldable](#getfoldable)
- [getFoldableWithIndex](#getfoldablewithindex)
- [reduce](#reduce)
- [reduceRight](#reduceright)
- [instances](#instances)
Expand All @@ -42,7 +43,6 @@ Added in v2.0.0
- [FunctorWithIndex](#functorwithindex)
- [getDifferenceMagma](#getdifferencemagma)
- [getEq](#geteq)
- [getFoldableWithIndex](#getfoldablewithindex)
- [getIntersectionSemigroup](#getintersectionsemigroup)
- [getMonoid](#getmonoid)
- [getShow](#getshow)
Expand Down Expand Up @@ -436,6 +436,19 @@ export declare const getFoldable: (O: Ord<string>) => Foldable1<URI>

Added in v2.11.0

## getFoldableWithIndex

Produces a `FoldableWithIndex1` instance for a `Record`, using the
provided `Ord` to sort the `Record`'s entries by key.

**Signature**

```ts
export declare const getFoldableWithIndex: (O: Ord<string>) => FoldableWithIndex1<URI, string>
```

Added in v2.11.0

## reduce

Reduces a `Record` passing each value to the iterating function.
Expand Down Expand Up @@ -589,19 +602,6 @@ assert.deepStrictEqual(eq.equals({ a: 'foo' }, { a: 'foo' }), true)

Added in v2.0.0

## getFoldableWithIndex

Produces a `FoldableWithIndex1` instance for a `Record`, using the
provided `Ord` to sort the `Record`'s entries by key.

**Signature**

```ts
export declare const getFoldableWithIndex: (O: Ord<string>) => FoldableWithIndex1<URI, string>
```

Added in v2.11.0

## getIntersectionSemigroup

Given a `Semigroup` in the base type, it produces a `Semigroup`
Expand Down
2 changes: 1 addition & 1 deletion src/Map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export const reduceRightWithIndex: <K>(O: Ord<K>) => <B, A>(b: B, f: (k: K, a: A
RM.reduceRightWithIndex

/**
* @category instances
* @category folding
* @since 2.10.0
*/
export const getFoldableWithIndex = <K>(O: Ord<K>): FoldableWithIndex2C<URI, K, K> => {
Expand Down
2 changes: 1 addition & 1 deletion src/ReadonlyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ export const reduceRightWithIndex = <K>(
}

/**
* @category instances
* @category folding
* @since 2.10.0
*/
export const getFoldableWithIndex = <K>(O: Ord<K>): FoldableWithIndex2C<URI, K, K> => {
Expand Down
2 changes: 1 addition & 1 deletion src/ReadonlyRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ export const getFoldable = (O: Ord<string>): Foldable1<URI> => ({
* Produces a `FoldableWithIndex1` instance for a `ReadonlyRecord`, using the
* provided `Ord` to sort the `ReadonlyRecord`'s entries by key.
*
* @category instances
* @category folding
* @since 2.11.0
*/
export const getFoldableWithIndex = (O: Ord<string>): FoldableWithIndex1<URI, string> => ({
Expand Down
2 changes: 1 addition & 1 deletion src/Record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ export const getFoldable = (O: Ord<string>): Foldable1<URI> => ({
* Produces a `FoldableWithIndex1` instance for a `Record`, using the
* provided `Ord` to sort the `Record`'s entries by key.
*
* @category instances
* @category folding
* @since 2.11.0
*/
export const getFoldableWithIndex = (O: Ord<string>): FoldableWithIndex1<URI, string> => ({
Expand Down

0 comments on commit 102f898

Please sign in to comment.