2015年8月19日
摘要: package com.leegh.dataset/** * @author Guohui Li */object MergedSort { def main(args: Array[String]): Unit = { def mergedsort[T](less: (T, T) => B... 阅读全文
posted @ 2015-08-19 09:16 李格非 阅读(205) 评论(0) 推荐(0) 编辑
  2015年8月18日
摘要: package com.leegh.dataset/** * @author Guohui Li */object MergedSort { def main(args: Array[String]): Unit = { def mergedsort[T](less: (T, T) => B... 阅读全文
posted @ 2015-08-18 08:55 李格非 阅读(174) 评论(0) 推荐(0) 编辑
  2015年8月17日
摘要: package com.leegh.dataset/** * @author Guohui Li */object List_FirstOrder_Ops { def main(args: Array[String]): Unit = { println(List(1, 2, 3, 4) :... 阅读全文
posted @ 2015-08-17 08:24 李格非 阅读(170) 评论(0) 推荐(0) 编辑
  2015年8月16日
摘要: package com.leegh.dataset/** * @author Guohui Li */object HelloList { def main(args: Array[String]): Unit = { val bigData = List("Hadoop", "Spark"... 阅读全文
posted @ 2015-08-16 09:06 李格非 阅读(178) 评论(0) 推荐(0) 编辑
  2015年8月15日
摘要: package com.leegh.pattern_match/** * @author Guohui Li */object Option_Internal { def main(args: Array[String]): Unit = { val scores = Map("Alice"... 阅读全文
posted @ 2015-08-15 09:32 李格非 阅读(171) 评论(0) 推荐(0) 编辑
  2015年8月14日
摘要: package com.leegh.pattern_match/** * @author Guohui Li */abstract class Itemcase class Book(description: String,price: Double) extends Itemcase class ... 阅读全文
posted @ 2015-08-14 07:33 李格非 阅读(349) 评论(0) 推荐(0) 编辑
  2015年8月13日
摘要: package com.leegh.pattern_match/** * @author Guohui Li */abstract class Personcase class Student(age: Int) extends Personcase class Worker(age: Int, s... 阅读全文
posted @ 2015-08-13 08:26 李格非 阅读(415) 评论(0) 推荐(0) 编辑
  2015年8月12日
摘要: package com.leegh.pattern_match/** * @author Guohui Li */object Extractor { def main(args: Array[String]): Unit = { def match_array(arr: Any) = ar... 阅读全文
posted @ 2015-08-12 08:13 李格非 阅读(207) 评论(0) 推荐(0) 编辑
  2015年8月11日
摘要: package com.leegh.pattern_match/** * @author Guohui Li *//** * Type,Array模式匹配 */object Pattern_Match_More { def main(args: Array[String]): Unit = { ... 阅读全文
posted @ 2015-08-11 08:24 李格非 阅读(200) 评论(0) 推荐(0) 编辑
  2015年8月10日
摘要: package com.leegh.pattern_match/** * @author Guohui Li *//** * 模式匹配 */object Hello_Pattern_Match { def main(args: Array[String]): Unit = { val dat... 阅读全文
posted @ 2015-08-10 08:29 李格非 阅读(95) 评论(0) 推荐(0) 编辑