That's because Scala doesn't have nearly enough semicolons.
Kidding aside, why do you feel Scala is unsuited to coding interviews, assuming the interviewer well-understands the language?
Kidding aside, why do you feel Scala is unsuited to coding interviews, assuming the interviewer well-understands the language?
Anyway I'd think one might use an array and not some other list/collection.