Hello! Can anybody show me, how to implement a fu...
# arrow
p
Hello! Can anybody show me, how to implement a functions that does an operation on a List given a function that does the operation on a single item in the context of IO and Either?
Copy code
fun delete(account: EmailAccount):  IO<Either<DatasourceFailure, Int>> {
	// Implemented
}


fun delete(accounts: List<EmailAccount>): IO<Either<DatasourceFailure, Int>> {
	???
}
I'm quite new to FP and the given documentation it is almost impossible to get the hang of it without having already done FP in another language.
r
p
Thanks! Without IO makes it a lot easier (at least for me)