2015年8月29日
摘要: package com.leegh.parameterization/** * @author Guohui Li */class Pair_Ordering[T: Ordering](val first: T, val second: T) { def bigger(implicit order... 阅读全文
posted @ 2015-08-29 09:00 李格非 阅读(129) 评论(0) 推荐(0) 编辑
  2015年8月28日
摘要: package com.leegh.parameterization/** * @author Guohui Li */class Pair_NotPerfect[T 0) first else second}//class Pair_NotPerfect[T 0) first else sec... 阅读全文
posted @ 2015-08-28 10:50 李格非 阅读(106) 评论(0) 推荐(0) 编辑
  2015年8月27日
摘要: package com.leegh.parameterization/** * @author Guohui Li */class Pair[T 0) first else second}class Pair_Lower_Bound[T](val first: T, val second: T) ... 阅读全文
posted @ 2015-08-27 19:37 李格非 阅读(143) 评论(0) 推荐(0) 编辑
  2015年8月26日
摘要: package com.leegh.parameterization/** * @author Guohui Li */import scala.reflect.ClassTagclass Trible[F, S, T](val first: F, val second: S, val third:... 阅读全文
posted @ 2015-08-26 09:05 李格非 阅读(352) 评论(0) 推荐(0) 编辑
  2015年8月25日
摘要: package com.leegh.dataset/** * @author Guohui Li */object List_Interal { def main(args: Array[String]): Unit = { val list = List(1, 2, 3, 4, 5) ... 阅读全文
posted @ 2015-08-25 14:38 李格非 阅读(146) 评论(0) 推荐(0) 编辑
  2015年8月24日
摘要: package com.leegh.dataset/** * @author Guohui Li */import scala.collection.mutableimport scala.collection.mutable.TreeSetimport scala.collection.immut... 阅读全文
posted @ 2015-08-24 08:45 李格非 阅读(232) 评论(0) 推荐(0) 编辑
  2015年8月23日
摘要: package com.leegh.datasetimport scala.collection.immutable.Queue/** * @author Guohui Li */object ListBuffer_ListArray_Queue_Stack { def main(args: Ar... 阅读全文
posted @ 2015-08-23 09:03 李格非 阅读(195) 评论(0) 推荐(0) 编辑
  2015年8月22日
摘要: package com.leegh.dataset/** * @author Guohui Li */object ListObjectOps { def main(args: Array[String]): Unit = { println(List.apply(1, 2, 3))// ... 阅读全文
posted @ 2015-08-22 08:14 李格非 阅读(129) 评论(0) 推荐(0) 编辑
  2015年8月21日
摘要: package com.leegh.dataset/** * @author Guohui Li */object List_Fold_Sort { def main(args: Array[String]): Unit = { println((1 to 100).foldLeft(0)(... 阅读全文
posted @ 2015-08-21 14:28 李格非 阅读(144) 评论(0) 推荐(0) 编辑
  2015年8月20日
摘要: package com.leegh.dataset/** * @author Guohui Li */object List_HighOrder_Function_Ops { def main(args: Array[String]): Unit = { println(List(1, 2,... 阅读全文
posted @ 2015-08-20 08:37 李格非 阅读(319) 评论(0) 推荐(0) 编辑