Algebraic data types: Difference between revisions

(→‎{{header|Tailspin}}: Add local datatype definition because sum types must be explicitly declared.)
Line 2,112:
{{trans|Haskell}}
 
Tailspin doesn't have algebraic types or type names, so here using a tag. Neither does it have destructuring (which seems to be posited in the problem statement). Arguably, pattern matching in Tailspin is more readable while still as concise.
<lang tailspin>
processor RedBlackTree
Anonymous user