private rotateLeft ( Medusa\Tree\RedBlackTree $t ) | ||
$t | Medusa\Tree\RedBlackTree |
private function rotateLeft(RedBlackTree $t)
{
return new self($t->right()->key(), $t->right()->value(), $this->createRed($t->key(), $t->value(), $t->left(), $t->right()->left()), $t->right()->right(), $t->color(), $t->isRoot());
}