dim property Null safety

NormalArgOperation dim
final

Implementation

static final NormalArgOperation dim = NormalArgOperation(
    arg: ArgAlternates(synonyms: _letterAndRegisterISynonyms, children: [
      ...List.generate(
          _letterLabelsList.length,
          (i) => KeyArg(
              key: _letterLabelsList[i], child: ArgDone((m) => _dim(m, i)))),
      KeyArg(
          key: Operations15.I15,
          child: ArgDone(
              (m) => _dim(m, m.memory.registers.index.asMatrix ?? 99))),
      // "Dimension" the number of registers:
      KeyArg(
          key: Operations15.parenI15,
          child: ArgDone((m) => (m as Model15).memory.numRegisters =
              max(m.x.intOp().asDouble.abs().toInt(), 1) + 1)),
    ]),
    name: 'DIM');