how do I process returned Either

Viewed 19426

if a scala function is

def A(): Either[Exception, ArrayBuffer[Int]] = {
...
}

what should be the right way to process the returned result? val a = A() and ?

3 Answers
Related