随笔分类 -  Scala

scala相关知识
摘要:参见链接 http://blog.csdn.net/i6448038/article/details/50017427 阅读全文

posted @ 2017-12-25 09:48 林枫水湾湾 阅读(373) 评论(0) 推荐(0)

摘要:https://stackoverflow.com/questions/33757225/scala-tuple3-syntactic-sugar 阅读全文

posted @ 2017-12-19 01:12 林枫水湾湾 阅读(360) 评论(0) 推荐(0)

摘要:Alternatives Use null as a last resort. As already mentioned, Option replaces most usages of null. If you using null to implement deferred initialisat 阅读全文

posted @ 2017-12-18 16:19 林枫水湾湾 阅读(3388) 评论(0) 推荐(0)

摘要:可变长度参数 Scala 允许你指明函数的最后一个参数可以是重复的。这可以允许客户向函数传入可变长度参数列表。想要标注一个重复参数,在参数的类型之后放一个星号。例如: scala> def echo(args: String*) = for (arg <- args) println(arg) ec 阅读全文

posted @ 2017-12-18 14:45 林枫水湾湾 阅读(224) 评论(0) 推荐(0)

摘要:=> has several meanings in Scala, all related to its mathematical meaning as implication.1. In a value, it introduces a function literal, or lambda. e 阅读全文

posted @ 2017-11-30 10:29 林枫水湾湾 阅读(645) 评论(0) 推荐(0)

摘要:As others have mentioned, it's an import rename. There is however one further feature that proves astoundingly-useful on occasion that I would like to 阅读全文

posted @ 2017-07-24 11:39 林枫水湾湾 阅读(186) 评论(0) 推荐(0)

摘要:原文链接:http://blog.csdn.net/a2011480169/article/details/52712421 参考博客: 1、http://wwwlouxuemingcom.blog.163.com/blog/static/20974782201321953144457/ 2、htt 阅读全文

posted @ 2017-07-17 18:18 林枫水湾湾 阅读(465) 评论(0) 推荐(0)

导航