Effect provides different ways to create effects, which are units of computation that encapsulate side effects
So Effect should represent a computation with side effects. But later on the same page of the docs an example of using Effect is present:
const divide = (a: number, b: number): Effect.Effect<number, Error> => b === 0 ? Effect.fail(new Error("Cannot divide by zero")) : Effect.succeed(a / b)
const divide = (a: number, b: number): Effect.Effect<number, Error> => b === 0 ? Effect.fail(new Error("Cannot divide by zero")) : Effect.succeed(a / b)
It's easy to note, that the function in the example is side effect free, but still it's the example in the docs. So either the example is bad or the line about side effects in a computation represented with Effect is wrong. What is the case?