Join Slack
Powered by
<How do I iterate over return type of Either<Cl...
# stackoverflow
u
user
07/08/2022, 5:51 AM
How do I iterate over return type of Either<ClientError, List<Employee>>?
Lets say my function A is returning Either. I assign it to a variable lets say: val employeeList = A(). for (e in employeeList) gives me an error saying "for loop must have iterator". How do I overcome this?
2
Views
Open in Slack
Previous
Next