中级会员
- 威望
- 0
- 贡献
- 0
- 热心值
- 0
- 金币
- 283
- 注册时间
- 2020-2-13
|
左聚合 3-1-2-3
// 归并,元素的聚合
val ints = List(3,1,2,3)
val reduceLef = ints.reduceLeft(_-_)
val reduceRight = ints.reduceRight(_+_)
val reduc =
右聚合 (3-(1-(2-3)))
左聚合 3-1-2-3
// 归并,元素的聚合
val ints = List(3,1,2,3)
val reduceLef = ints.reduceLeft(_-_)
val reduceRight = ints.reduceRight(_+_)
val reduc =
右聚合 (3-(1-(2-3)))
左聚合 3-1-2-3
// 归并,元素的聚合
val ints = List(3,1,2,3)
val reduceLef = ints.reduceLeft(_-_)
val reduceRight = ints.reduceRight(_+_)
val reduc =
右聚合 (3-(1-(2-3)))
左聚合 3-1-2-3
// 归并,元素的聚合
val ints = List(3,1,2,3)
val reduceLef = ints.reduceLeft(_-_)
val reduceRight = ints.reduceRight(_+_)
val reduc =
右聚合 (3-(1-(2-3)))
|
|