Ejemplo n.º 1
0
 function has($item)
 {
     return $this->bst->contains($item);
 }
Ejemplo n.º 2
0
 /**
  * @link http://php.net/manual/en/arrayaccess.offsetexists.php
  *
  * @param mixed $offset
  *
  * @return bool
  */
 function offsetExists($offset)
 {
     return $this->avl->contains(new Pair($offset, null));
 }