コード例 #1
0
ファイル: array.php プロジェクト: aempirei/R-evolution-PHP
	function delete($obj,$f=null) {
		$data = $this->reject(function($x) { return equ($x, $obj); });
		if($data->size() == $this->size())
			return is_callable($f) ? $f() : $f;
		$this->DATA = $data->native();
		return $obj;
	}
コード例 #2
0
	function member($obj) {
		return $this->find(function($y) use($obj) { return equ($obj, $y); }) != null;
	}