Not a big deal, but it makes the code slightly mes...
# arrow
v
Not a big deal, but it makes the code slightly messy. We are transforming Either (at the end of the chain) to a rest response object using an extension function, and having to define the type twice on two lines gets a little too explicit, example from the production code:
Copy code
fun getAccounts(): Response<List<OrganisationWithAccounts<Account.Debit>>> =
        binding<Failure, List<OrganisationWithAccounts<Account.Debit>>> {
            val bankId = ctx.bankId().bind()
            ....
            ....
        }.response()