Fixing Random, part 20

added by DotNetKicks
4/9/2019 4:30:49 PM

2 Kicks, 155 Views

Without further ado, here's my proposed stripped-down C# that could be a DSL for probabilistic workflows; as we'll see, it is quite similar to both enumerator blocks from C# 2 and async/await from C# 5. The workflow must be a function with return type of IDiscreteDistribution for some T.