예제 #1
0
 public function testSome()
 {
     $result = $this->_List->some(function ($value) {
         return \is_callable($value);
     });
     $this->assertTrue($result);
 }
예제 #2
0
파일: BitSet.php 프로젝트: dazarobbo/cola
 /**
  * Whether any bits are set
  * @return bool
  */
 public function any()
 {
     return $this->_List->some(function ($v) {
         return $v;
     });
 }