hlList method

List<int> hlList(
  1. int length
)

Implementation

List<int> hlList(int length) {
  List<int> lstNew = [];

  for (int i = 0; i < length; i++) {
    if (this[i] == 0) {
      break;
    }
    lstNew.add(this[i]);
  }

  return lstNew;
}