Improving File Existence Handling in Effect
Hello everyone
I'm new to Effect (and fp) and was wondering if there are better ways of handling this snippet (I'm testing this is bun as well)
I want to add a little check in my main pipe, which looks like
I want to add a little check in my main pipe, which looks like
pipe(file, doesFileExist, readFile), but it feels like there should be a better way to achieve this without overriding the boolean value