05 2015 档案
摘要:词缀位置,含义示例dia-表示"穿过,二者之间"dialogue 对话(dia+logue 话→对着说话)diameter 直径(dia+meter 测量→对着测量〔圆〕直径)diaphanous 透明的;精致的(dia+phan 显示+ous→对面显示〔影子〕→透明的)dialectic 辩证法(...
阅读全文
摘要:[原文链接](http://blog.sina.com.cn/s/blog_4c5c25d60101hgcy.html)词缀位置,含义示例a-加在单词或词根前面; 表示"不,无,非"acentric 无中心的 (a+centric 中心的)asocial 不好社交的(a+social 好社交的)am...
阅读全文
摘要:# `msort` vs `sortWith`~~~scalaval ls = List("a", "b", "c", "d", "e")msort((x: Char, y: Char) => x > y)(ls)ls sortWith(_ > _)msort(_ > _)(ls) // er...
阅读全文
摘要:[scala编码规范](http://zhangyi.farbox.com/post/scala-coding-standard)[有关jvm,scala与后端架构](http://hongjiang.info/scala/)[组合子](http://www.blogjava.net/ajoo/ca...
阅读全文
摘要:[铁夫破词](http://study.163.com/course/courseMain.htm?courseId=594003)## 词根hum(泥土)+ human(女娲造人)+ hummock:小山岗,小土丘+ inhume(埋葬,埋藏)+ exhume(挖掘) `e`表示动...
阅读全文
摘要:# Case Class and Pattern Matching## A simple example~~~scalaabstract class Exprcase class Var(name: String) extends Exprcase class Number(name: Double...
阅读全文
摘要:## Functional ObjectsFunctional Objects do not have any mutable state. The `Rational` class Example:1. Constructing a `Rational`2. Reimplementing th...
阅读全文
摘要:# TraitsTraits are a fundamental unit of code reuse in Scala. A trait encapsulates method and field definitions, which can then be reused by mixing th...
阅读全文
摘要:## 特殊之处In Scala assignment always results in the unit value, ()```scalavar a = 1(a = 2).getClass //=> Class[Unit] = void```## 读取文件```scalaimport s...
阅读全文
摘要:## Composition and Inheritance1. abstract classes2. parameterless methods3. extending classes4. overriding methods and fields5. parametric fields6. in...
阅读全文
摘要:## Shortcuts[EmacsNewbieKeyReference](http://emacswiki.org/emacs/EmacsNewbieKeyReference)| shortcut | key-binding || :--------: | :-----------: || go ...
阅读全文
摘要:# 4.1 Computational EffectsThe *value* produced by a computation may have *effects* as well: it may read,print,or alter the state of memory or a file ...
阅读全文
浙公网安备 33010602011771号