[LearningScala] Iteration over a range
object IterOverRange{
def main(args: Array[String]) {
// Method1: define a function to retrieve a decreasing range, then iterate
def dec(start: Int, end: Int) = {
start to en...
原创
2018-12-07 03:30:04 ·
154 阅读 ·
0 评论