The diagonal command currently has the following rules.
If a scalar is on top of the stack, then the numerical arg is required.
If a vector is on the top of the stack, then the numerical arg is optional, but if supplied, must match the length of the vector.
In the case of a scalar and no numerical argument, I'd like to prompt for one. This is a nontrivial input flow, as it requires validating the top of the stack in advance.
The diagonal command currently has the following rules.
In the case of a scalar and no numerical argument, I'd like to prompt for one. This is a nontrivial input flow, as it requires validating the top of the stack in advance.