🏷️ Tagged unions for vanilla JavaScript!
-
Updated
Oct 17, 2017 - JavaScript
🏷️ Tagged unions for vanilla JavaScript!
This package provides Discriminated Unions for C# with an opportunity inherit from built in type and create custom Union Type.
A TypeScript datatype representing network state which takes advantage of discriminated unions
Pattern matching and tagged unions in JavaScript without new syntax.
Extensions for https://github.com/mcintyre321/OneOf that expose XOrResonWhyNot extension methods for LINQ
Unsupervised Learning
Utility function for exhaustiveness checking with typed JS (TS or Flow)
Discriminated Unions including Maybe (an option type) and Result for javascript with fewer bugs
A simple, no-overhead, value-type wrapper around Object to mimic Algebraic Data Types on C#
My solutions to problems of Code Jam 2021.
minimal utilities to work with union types and tagged unions (a.k.a. discriminated unions) in TypeScript
A simple, serializable sum-type format
A library that provides functionality to define a Discriminated Union in C# via Source Generators.
Concept for Result and Option types in C#/.NET
Helper function for exhaustive checks of discriminated unions in TypeScript
A very simple discriminated union of success or error
Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.
C++17 `std::variant` for C++11/14/17
Add a description, image, and links to the discriminated-unions topic page so that developers can more easily learn about it.
To associate your repository with the discriminated-unions topic, visit your repo's landing page and select "manage topics."