Algebraic data types: Difference between revisions

Content deleted Content added
Tobega (talk | contribs)
m →‎{{header|Tailspin}}: Add type bound for equality comparison
PureFox (talk | contribs)
m →‎{{header|Wren}}: Changed to Wren S/H
Line 2,608:
{{trans|Go}}
Wren doesn't have either algebraic data types or pattern matching though, despite that, the ''T.balance()'' method looks better than I thought it would :)
<syntaxhighlight lang="ecmascriptwren">var R = "R"
var B = "B"