Effect CommunityEC
Effect Community•3y ago•
7 replies
bwlt

Searching for Array Utility Types in fp-ts: Specifically `findFirst<A>(p: Predicate<A>): (arr: A[...

👋 Hi! do you know if in effect there are array utility types like the ones in fp-ts?
I would like to have a findFirst<A>(p: Predicate<A>): (arr: A[]) => Option<A>
I can use Array.prototype.find which returns A | undefined but I'm searching for something more idiomatic
Was this page helpful?