UNPKG

effect

Version:

The missing standard library for TypeScript, for writing production-grade software.

11 lines (9 loc) 208 B
/** @internal */ export interface Stack<out A> { readonly value: A readonly previous: Stack<A> | undefined } export const make = <A>(value: A, previous?: Stack<A>): Stack<A> => ({ value, previous })