Skip to content

Commit 34ece07

Browse files
oschulzcscherrer
andcommitted
Improve docstring for mbind
Co-authored-by: Chad Scherrer <[email protected]>
1 parent 289b3b9 commit 34ece07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/combinators/bind.jl

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Given
2828
measure
2929
3030
The *monadic bind* operation `mbind(k, μ)` returns is a new measure.
31+
If `ν == mbind(k, μ)` and all measures involved are sampleable, then
32+
samples from `rand(ν)` follow the same distribution as those from `rand(k(rand(μ)))`.
33+
3134
3235
A monadic bind ofen written as `>>=` (e.g. in Haskell), but this symbol is
3336
unavailable in Julia.

0 commit comments

Comments
 (0)