shallowCopy method

List<E> shallowCopy()

浅拷贝

Implementation

List<E> shallowCopy() {
  List<E> tempList = [];
  tempList.addAll(this);
  return tempList;
}