Scala課堂-4-模式匹配和函數組合

由於Kafka是用Scala寫的,爲了方便學習Scala語法,此處把Twitter官方的Scala課堂轉載到此處。 (原文位於http://twitter.github.io/scala_school/zh_cn/index.html,因爲時常被牆,速度極慢)。javascript 函數組合 讓咱們建立兩個函數:html scala> def f(s: String) = "f(" + s + "
相關文章
相關標籤/搜索