Algebraic data types: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Tailspin}}: Add type bound for equality comparison)
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"
 
9,476

edits