示例#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;
     });
 }