Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Algebraic Data Type

< >
Example from 1 languages: TypeScript
declare type numOrString = string | number
Example from 1 languages: Coconut
data Empty() data Leaf(n) data Node(l, r) def size(Empty()) = 0 addpattern def size(Leaf(n)) = 1 addpattern def size(Node(l, r)) = size(l) + size(r)
*

Languages with Algebraic Data Type include TypeScript, Coconut, Mach, Morloc, Lateralus

*

View all concepts with or missing a hasAlgebraicTypes measurement

*

Read more about Algebraic Data Type on the web: 1.

- Build the next great programming language 路 Add 路 Add Prompt 路 Issues 路 About 路 Search 路 Keywords 路 Livestreams 路 Labs 路 Resources 路 Acknowledgements