Skip to content

Commit

Permalink
Semigroupal: remove useless zipWith export
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti authored and mikearnaldi committed Oct 17, 2022
1 parent e1fd35e commit 9c53179
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-moles-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fp-ts/core": patch
---

Semigroupal: remove useless zipWith export
11 changes: 0 additions & 11 deletions src/Semigroupal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@ export const zip = <F extends TypeLambda>(Semigroupal: Semigroupal<F>) =>
): Kind<F, S, R1 & R2, O1 | O2, E1 | E2, readonly [A, B]> =>
pipe(self, Semigroupal.zipWith(that, (a, b) => [a, b]))

/**
* Zips this effect with the specified effect using the
* specified combiner function.
*
* @since 1.0.0
*/
export const zipWith = <F extends TypeLambda>(Semigroupal: Semigroupal<F>) =>
<S, R2, O2, E2, B, A, C>(that: Kind<F, S, R2, O2, E2, B>, f: (a: A, b: B) => C) =>
<R1, O1, E1>(self: Kind<F, S, R1, O1, E1, A>): Kind<F, S, R1 & R2, O1 | O2, E1 | E2, C> =>
pipe(self, Semigroupal.zipWith(that, f))

/**
* Returns an effect that executes both this effect and the specified effect,
* in parallel, this effect result returned. If either side fails, then the
Expand Down

0 comments on commit 9c53179

Please sign in to comment.