Source/Packages

Std.Foundation

packages/foundation/standard/src/Std/Foundation.alpha

329 lines52 declarations12.3 KiBSHA-256 7818c29d5c7c

def · lines 267–276

stdResultIsSuccess

Full file
Did this result succeed?
267def stdResultIsSuccess =
268  (lambda erased errorType : Type 0 .
269    (lambda erased valueType : Type 0 .
270      (lambda unrestricted value : (family StdResult errorType valueType) .
271        (eliminate
272          StdResult
273          (lambda unrestricted current : (family StdResult errorType valueType) . (family StdBool))
274          value
275          (branch StdFailure held . (constructor StdBool StdFalse))
276          (branch StdSuccess held . (constructor StdBool StdTrue))))))

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.