代码改变世界

随笔档案-2014年12月

Scala的sealed关键字

2014-12-30 02:02 by Rollen Holt, 15862 阅读, 收藏,
摘要: # Scala的sealed关键字## 缘起今天在学习`Akka`的监控策咯过程中看到了下面一段代码: def supervisorStrategy(): SupervisorStrategy = OneForOneStrategy(maxNrOfRetries = 10, withinTime... 阅读全文

Groupby - collection processing

2014-12-18 00:34 by Rollen Holt, 482 阅读, 收藏,
摘要: # Groupby - collection processingIterator and Iterable have most of the most useful methods when dealing with collections. Fold, Map, Filter are proba... 阅读全文