How do I write a computation expression builder that accumulates a value and also allows standard language constructs?

前端 未结 4 1533
悲哀的现实
悲哀的现实 2021-02-03 10:34

I have a computation expression builder that builds up a value as you go, and has many custom operations. However, it does not allow for standard F# language constructs, and I\'

4条回答
  •  情歌与酒
    2021-02-03 11:01

    The tutorial at "F# for fun and profit" is first class in this regard.

    http://fsharpforfunandprofit.com/posts/computation-expressions-intro/

提交回复
热议问题