operator * method

List<T> operator *(
  1. int factor
)

重复列表factor

Implementation

List<T> operator *(int factor) {
  return [for (int i = 0; i < factor; i++) ...this];
}