
scala
A™A_Forever
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
scala实现 快速排序 和 插入排序
**插入排序 **在这里插入代码片 // scal 函数式编程实现插入排序 def insertSortByFunction[A <% Ordered[A]](list:List[A]):List[A]={ def insertSort(unSort:List[A], sort:List[A]):List[A]=unSort match{ ...原创 2019-06-15 15:52:07 · 351 阅读 · 0 评论 -
scala match匹配
match 常用类型匹配 object TestMatch { def main(args: Array[String]): Unit = { matchAny("a") matchArray() matchTuple() caseClassMacth() matchEnum() } de...原创 2019-06-15 15:56:39 · 359 阅读 · 0 评论