import { type Err } from "https://deno.land/x/eitherway@0.10.0/lib/core/mod.ts";
Err
The failure variant of a Result<T, E>
Examples
Example 1
Example 1
import { assert } from "./assert.ts";
import { Err, Ok, Result } from "./result.ts";
const err = Err("Problem");
const tag = Object.prototype.toString.call(Err);
assert(err instanceof Err);
assert(err instanceof Result);
assert(tag === "[object eitherway::Result::Err]");
definition: _Err<E>
import { Err } from "https://deno.land/x/eitherway@0.10.0/lib/core/mod.ts";