error: postfix operator toArray needs to be enabled code example Example: error: postfix operator toArray needs to be enabled import scala.language.postfixOps