Result type

Result of a computation

Direct children types

Failure
Failed computation
Direct subtypes: 1
Success
Successful computation
Direct subtypes: 1

Constructors

Result(fun:Fun) Source: stdlib.ngs:3028
Runs the computation and wraps the result: a value is wrapped in Success and an exception is wrapped in Failure.

Returns

Success or Failure

Methods

ExitCode(r:Result) Source: stdlib.ngs:3109
EXPERIMENTAL! Do not use!
report(tr:TestsResults, group_name:Str, test_name:Str, result:Result, critical:Bool) Source: autoload/TestsResults.ngs:14
Undocumented