下面的代码在2.12.10中运行良好,但在2.13.5中失败,并出现错误:
错误:Value to Double不是任何[Error]数组(Maxval.toDouble)的成员。map(_.toDouble))
代码:
val xyz: Array[Double] =
Array(minval.toDouble) ++
(
(
(minval.toDouble until maxval.toDouble by width_).toArray ++
Array(maxval.toDouble)
).map(_.toDoubleOption)
)
1条答案
按热度按时间c0vxltue1#