<F>
Return a Result\Err
result.
$x = Result\err("nope");
self::assertTrue($x->isErr());
self::assertSame("nope", $x->unwrapErr());
$x->unwrap(); // @throws RuntimeException Unwrapping `Err`: s:4:"nope";
Parameters | |||
---|---|---|---|
F
|
$value |
# |
Returns | |
---|---|
Err<F>
|