| Scalaz | Cats |
|---|---|
| Cobind | CoflatMap |
| Bind | FlatMap |
| MonadPlus | MonadCombine |
| PlusEmpty | MonoidK |
| Foldable1 | Reducible |
| Plus | SemigroupK |
| These | Ior |
| Validation | Validated |
| 更新: | 2017-05-09 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 3.14 |
| URL: | http://voluntas.github.io/ |
MQTT をググって調べた人向け
- Raftという分散合意アルゴリズムの紹介
- 論文: In Search of an Understandable Consensus ALgorithm (Extended Version)
- Raft三日目くらいの人が自分の理解をもとに(適当に)書いています
- versionは0.7a
- scalaz-streamではなくscalaz-concurrentにあるクラス
- scalaz-streamは、これと
Taskにかなり依存してるので、まずはこれらを理解することが重要
ぱぴろん(Papylon)は、満たすべき性質(property)を記述することでテストケースを自動生成する Python 用テスティングツールです。いわゆる"QuickCheck"系の流れを汲み、 FsCheck と ScalaCheck の影響を強く受けています。テストしたい対象の振る舞うべき性質を記述して実行すると、テストケースをランダムに生成して実行し、性質が成り立つかどうかを確認します。
see: https://github.com/bleis-tift/SmlSharpContrib
SML#のライブラリが足りないのでなんとかしたい。
- こったライブラリにはしない
- 適当なCライブラリの薄いラッパにする
- メソッドはすべて移植する(よっぽど不要なやつは省く?)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Inductive Term : Set := | |
| | T | |
| | F | |
| | TIf (_ : Term) (_ : Term) (_ : Term). | |
| Inductive Step : Term -> Term -> Prop := | |
| | EIfTrue : forall (t1 t2 : Term), Step (TIf T t1 t2) t1 | |
| | EIfFalse : forall (t1 t2 : Term), Step (TIf F t1 t2) t2 | |
| | EIf : forall (t1 t1' t2 t3 : Term), Step t1 t1' -> Step (TIf t1 t2 t3) (TIf t1' t2 t3). |
| Language | ||||||||
|---|---|---|---|---|---|---|---|---|
| Common Lisp | mapc | mapcar | find-if | remove-if-not | reduce | reduce :from-end t | some | every |
| Scheme | for-each | map | find | filter | fold, fold-left | fold-right | any, exists | every, for-all |
| Haskell | mapM_ | map | find | filter | foldl | foldr | any | all |
| Caml Light | do_list | map | - | - | it_list | list_it | exists | for_all |
| OCaml | iter | map | find | filter, find_all | fold_left | fold_right | exists | for_all |
| F# | iter | map | find | filter | fold | foldBack | exists | forall |
この記事はScala Advent Calendar 2013の7日目の記事です。
昨日は @shogogg さんのScala + sbt-android + IntelliJ で快適Androidアプリ開発でした。
明日は @takezoux2 さんのScalaのParserCombinator実践入門+です。
継続モナドを調べていたら、@terazzo さんのJavaで継続モナドという記事が非常に判りやすかったんですが、サンプルコードがJavaのボイラープレートの嵐でちょっと読むのが辛い感じだったのでScalaで翻訳してみました、というのがこの記事です。