
Scala
wxv111
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Double precision
scala> 0.0000000000000001+1 (16bits) res37: Double = 1.0scala> 0.000000000000001+1 (15bits) res38: Double = 1.000000000000001scala> 0.0000000000000000001 res30: Double = 1.0E-19原创 2016-07-30 18:12:45 · 2066 阅读 · 0 评论 -
Scala strict & non-strict
strict non-strict原创 2016-10-10 10:59:48 · 665 阅读 · 0 评论 -
Scala lazy
trait Stream[+A] { def uncons: Option[(A, Stream[A])] def isEmpty: Boolean = uncons.isEmpty // 此函数有side effect很不好, 不要这样写, 这里只为测试, def tryMatch: Unit = { uncons match { case Some(x) =>原创 2016-10-10 21:52:37 · 541 阅读 · 0 评论