我无法弄清楚distribution
中定义的org.apache.spark.sql.catalyst.plans.physical.partitioning.scala
和let numbers = [10,7,4,6,3,77,232,56,99];
let minNum = numbers[0];
let maxNum = numbers[0];
numbers.forEach(function(number) {
if(number < minNum ) {minNum = number};
if(number > maxNum ) {maxNum = number};
})
console.log(minNum) // gives 3
console.log(maxNum) // gives 232
之间的区别是什么,有人可以告诉我一些例子来解释它们的区别吗?谢谢!