安裝sbt后,在dos下運行sbt命令出現(xiàn)Error: Could not retrieve jansi 1.11
2016-09-11
def qSort(a:List[Int]):List[Int] =
if (a.length < 2) a
else
qSort(a.filter(_ < a.head)) ++
a.filter( _ ==a.head) ++
qSort(a.filter( _ > a.head))
if (a.length < 2) a
else
qSort(a.filter(_ < a.head)) ++
a.filter( _ ==a.head) ++
qSort(a.filter( _ > a.head))
2016-09-07
def walkthru(l:List[Int]):String={
if(l.isEmpty) ""
else l.head.toString+" "+walkthru(l.tail)
}
if(l.isEmpty) ""
else l.head.toString+" "+walkthru(l.tail)
}
2016-09-07
已采納回答 / 花里狐邵
1、函數(shù)式編程的基本概念 2、Scala的開發(fā)環(huán)境 3、高階函數(shù) 4、表達式求值策略 5、Scala Immutable Collection簡介?
2016-09-03