Skip to content

Instantly share code, notes, and snippets.

export function just<T>(value: T): Just<T> {
return new _Just<T>(value) as Just<T>;
}
export function nothing(): Nothing<any> {
return new _Nothing() as Nothing<any>;
}
export interface MBase<T> {
type: "just" | "nothing";

Keybase proof

I hereby claim:

  • I am datokrat on github.
  • I am datokrat (https://keybase.io/datokrat) on keybase.
  • I have a public key whose fingerprint is 28C3 6142 A24C 1ED3 F5AC BDDF 2437 162C 4747 1BEF

To claim this, I am signing this object: