Example #1
0
 /**
  * @return mixed
  */
 function firstKey()
 {
     return $this->avl->first()->first;
 }
Example #2
0
 /**
  * @return mixed
  * @throws EmptyException when the tree is empty
  */
 function first()
 {
     return $this->bst->first();
 }
Example #3
0
 /**
  * @return mixed
  * @throws EmptyException when the tree is empty
  */
 function first()
 {
     return $this->avl->first();
 }