Compose checked operations without replacing an earlier error with a later
default. The continuation receives a value only in the success branch.
273def stdResultBind =
274 (lambda erased errorType : Type 0 .
275 erased inputType : Type 0 .
276 erased outputType : Type 0 .
277 unrestricted input : (family StdResult errorType inputType) .
278 unrestricted next : (pi unrestricted value : inputType . family StdResult errorType outputType) .
279 eliminate
280 StdResult
281 (lambda unrestricted current : (family StdResult errorType inputType) .
282 family StdResult errorType outputType)
283 input
284 (branch StdFailure error . constructor StdResult StdFailure errorType outputType error)
285 (branch StdSuccess value . next value))The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.