Const
Constructs a uoe-enum instance, which behaves like a tagged union.
An enum instance consists of a symbol and optionally some data.
const pet = enm.cat({ name: "Fluffy" });const bate = enm.fish;draw_animals(tup([pet, bate])({ stroke: enm.no_stroke, fill: enm.with_fill.gradient(tup(enm.red, enm.blue))})); Copy
const pet = enm.cat({ name: "Fluffy" });const bate = enm.fish;draw_animals(tup([pet, bate])({ stroke: enm.no_stroke, fill: enm.with_fill.gradient(tup(enm.red, enm.blue))}));
Generated using TypeDoc
Constructs a uoe-enum instance, which behaves like a tagged union.
An enum instance consists of a symbol and optionally some data.