Collection types, mainly, but element types would also be interesting here.
What I personally would like to see is a few well-motivated examples of this in use, with a comparison to what it would look like using the existing
T(repeating: 0, count: n).
Also, this can be defined for all RRCs, but does the naming and functionality make sense for all of them, or should it be more narrowly constrained? Should
Data have a
.zeros(count:), for example?
w.r.t. element types I'm particularly interested in why you want to target
AdditiveArithmetic instead of
Numeric. Do you expect to use this initializer on, e.g. an
Array of TensorFlow