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

◆ RotateRight()

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

Definition at line 259 of file SortedInt32KeyNode.cs.

260 {
261 Requires.NotNull(tree, "tree");
262 if (tree._left.IsEmpty)
263 {
264 return tree;
265 }
266 SortedInt32KeyNode<TValue> left = tree._left;
267 return left.Mutate(null, tree.Mutate(left._right));
268 }

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