Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make batchTraverse pipe-able #72

Open
SRachamim opened this issue Nov 3, 2020 · 0 comments
Open

Make batchTraverse pipe-able #72

SRachamim opened this issue Nov 3, 2020 · 0 comments
Milestone

Comments

@SRachamim
Copy link
Contributor

SRachamim commented Nov 3, 2020

🚀 Feature request

Make batchTraverse pipe-able.

Current Behaviour

Last invocation of batchTraverse requires the data (first) and the function (last):

import * as TE from 'fp-ts/TaskEither'
import { batchTraverse } from 'fp-ts-contrib/batchTraverse'


pipe(
  /** ... */
  (ass) => batchTraverse(TE.taskEither)(ass, f),
  /** ... */
)

Desired Behavior

batchTravers should be pipe-able with data-last:

import * as TE from 'fp-ts/TaskEither'
import { batchTraverse } from 'fp-ts-contrib/batchTraverse'


pipe(
  /** ... */
  batchTraverse(TE.taskEither)(f),
  /** ... */
)
@gcanti gcanti added this to the 0.2 milestone Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants