コード例 #1
0
ファイル: ArrayListTest.php プロジェクト: dazarobbo/cola
 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;
     });
 }