Exhaustive pattern matching on unions
const message = (status: Status): string =>
match(status, {
Pending: () => "⏳ Awaiting review",
Approved: ({by}) => `✅ By ${by}`,
Rejected: ({reason}) => `❌ ${reason}`,
});
Console output, timeline events will render here after you run the program.
Handlers: Console.capture() · Exception.tryCatch()