Currently, Swift's generic parameters are always types. One could imagine allowing generic parameters that are values, e.g.,
10:00 AM
struct MultiArray<T, let Dimensions: Int> { // specify the number of dimensions to the array subscript (indices: Int...) -> T { get { require(indices.count == Dimensions) // ... } }(edited)