Effect CommunityEC
Effect Community•11mo ago
Sly

Filtering Elements in an Effect with an Array

Given an effect that returns:

Effect.Effect<readonly {
    //...
}[], SomeError, never>

How can I filter that only elements of the array with specific properties should be further processed?

I tried something into the direction of

.pipe( Effect.filter( something => ...


But in this case the type of something is

YieldWrap<Effect.Effect<readonly {
    //...
}[], SomeErrorError, never>>


Can one help me out? 🙂
Was this page helpful?