I want to add support to my Computation Expression builder for this construct:
let f =
foo {
let! x =
foo {
return 1
}
and! y =
foo {
return 2
}
return x + y
}
The compiler says I must implement either Bind2
or MergeSource
. However, I cannot find them in the docs.
What signatures should these have? Can you give a simple example?