错误的值是怎么算的
val a = List(3,5,9) a.reduceLeft((x,y)=>(x+x))? =12 ? a.reduceLeft((x,y)=>(x+y))? =17 OK a.reduceLeft((x,y)=>(x+x+y))? =31 ?
val a = List(3,5,9) a.reduceLeft((x,y)=>(x+x))? =12 ? a.reduceLeft((x,y)=>(x+y))? =17 OK a.reduceLeft((x,y)=>(x+x+y))? =31 ?
2016-07-14
举报