Algebraic data types: Difference between revisions

m
→‎{{header|Tailspin}}: update to latest
(Add reference to "Red-Black Trees in a Functional Setting")
m (→‎{{header|Tailspin}}: update to latest)
Line 2,503:
templates ins&{into:}
when <?($into <={}>)> do { colour: 'red', left: {}, value: $, right: {}} !
when <..$into.value::raw> do { $into..., left: $ -> ins&{into: $into.left}} -> balance !
otherwise { $into..., right: $ -> ins&{into: $into.right}} -> balance !
end ins
Anonymous user