<How do I iterate over return type of Either&lt;Cl...
# stackoverflow
u
How do I iterate over return type of Either&lt;ClientError, List&lt;Employee&gt;&gt;? 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?