concept custom computation in category c#

appears as: custom computations, custom computation
Real-World Functional Programming with Examples in F# and C#

This is an excerpt from Manning's book Real-World Functional Programming with Examples in F# and C#.

12.5. First steps in custom computations

The example in this section doesn’t have any real-world benefit, but it demonstrates the core concepts. The first task in designing a custom computation is to consider the type that represents the values produced by the computation.