You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was a decision made early on when working out the type classes in hkts. You can see a discussion on it here. You can create a sequence function for any ADT with an Applicative class by doing this:
After playing around with the traverse function for awhile I found that the generic is not inferred properly by TypeScript still in the above example. I've implemented a createSequence function that coerces to the correct type in PR #8. Perhaps you wouldn't mind reviewing that?
There are no convenience sequence functions like in
fp-ts
for doing:Option<T>[]
->Option<T[]>
Either<E,T>[]
->Either<E,T[]>
The text was updated successfully, but these errors were encountered: