コード例 #1
0
ファイル: ArrayList.php プロジェクト: dazarobbo/cola
 /**
  * Creates a new list with $value repeated $count number of times
  * @param mixed $value
  * @param int $count
  * @return \static
  */
 public static function repeat($value, $count)
 {
     $list = new static();
     for ($i = 0; $i < $count; ++$i) {
         $list->_Arr[$i] = Functions\Object::copy($value);
     }
     return $list;
 }