import { Ok, Err } from "./@result" const truthy = (arg?: any) => (!!arg ? Ok(arg) : Err(`falsy`)) const truth = truthy("something") truth.ok ? console.log(`truthy`) : truth.error ? console.trace(`falsy ${truth.error}`) : console.trace(`unknown error`)