Replies: 1 comment 1 reply
-
Hm, I don't think you can filter Task/TaskEither array. A The best you could do, I think is using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have array of TE
And I would like to filter the array to be like
TE.TaskEither<Error1, Data>[]
What is the easiest way to do this?
At the moment I do
O.some
TE.orElse
on the array where I match theError2
and convert it toO.none
, and keep the rest as it was withTE.left(error)
This works but it seems clunky, is there some cleaner way?
Beta Was this translation helpful? Give feedback.
All reactions