Closed diogob closed 2 years ago
To be able to write domain functions that depend on the result of other domain functions without having to write a bunch of boilerplate.
Since every domain function takes 2 arguments and returns a Promise<Result<Output>> we have to define some semantics for our composition:
Promise<Result<Output>>
Purpose
To be able to write domain functions that depend on the result of other domain functions without having to write a bunch of boilerplate.
Technical details
Since every domain function takes 2 arguments and returns a
Promise<Result<Output>>
we have to define some semantics for our composition: