Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RotateLeft()

static SortedInt32KeyNode< TValue > System.Collections.Immutable.SortedInt32KeyNode< TValue >.RotateLeft ( SortedInt32KeyNode< TValue > tree)
inlinestaticprivate

Definition at line 248 of file SortedInt32KeyNode.cs.

249 {
250 Requires.NotNull(tree, "tree");
251 if (tree._right.IsEmpty)
252 {
253 return tree;
254 }
255 SortedInt32KeyNode<TValue> right = tree._right;
256 return right.Mutate(tree.Mutate(null, right._left));
257 }

Referenced by System.Collections.Immutable.SortedInt32KeyNode< TValue >.DoubleLeft(), System.Collections.Immutable.SortedInt32KeyNode< TValue >.DoubleRight(), and System.Collections.Immutable.SortedInt32KeyNode< TValue >.MakeBalanced().