タグ

iterateeに関するikeike443のブックマーク (2)

  • Understanding Iteratees

    Jean-Laurent Huynh (@huynhjl), San Diego Scala Meetup, Thu May 17 1 Introduction1.1 What are Iteratees? An iteratee is a stream processor, it takes a number of elements from an input stream, performs a calculation with them, and returns the value of the calculation. After completion, the elements used by the iteratee should be removed from the stream John W Lato (one of the author of the Haskell i

  • play.api.libs.iteratee

    明日はPlay Framework 2.0 ソースコードリーディングの会でIterateeのところを任されたのでちょっと使ってみたり。 Iteratee 適当な説明 Enumerator -> ストリーム Iteratee -> ストリームに対する処理 Enumeratee -> ストリームの各要素に対する処理 以上! 例 scalaz.iterateeとの比較 Scalazのと比較すると簡単に思える不思議。 Scalaz Scalazではモナド変換子版がベース。 IterateeにEnumeratee,Enumeratorを適用する。 型クラスを利用した実装で提供される関数は多い。 だが型にうるさい。 明示的に型を指定しなければいけないこともしばしば。 Play Playでは結果がPromiseで返る。 EnumeratorにIteratee,Enumerateeを適用する。 内部で使う

  • 1