問題タブ [reader-monad]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
136 参照

scala - Scala: さまざまなコンテキストと依存関係を持つ ReaderT 構成

異なる ReaderT を返すs3f1および関数の例:s3f2

F[_]コンテキストと依存関係が異なるリーダーを返す次の 2 つの関数を構成しようとしていReaderT[Option, Service1, Int]ます。ReaderT[FailFast, Service2, Int]

どういうわけかF[_]コンテキストを結合する必要があります。つまり、 と結合FailFastOptionます。私は、それを次のように組み合わせるのが理にかなっていると思いますFailFast[Option]

s3f1 と s3f2 の構成方法: