I am attempting to write a proc for `[]` which handles `HSlice`.
I am failing to see how to convey to the newSeq the desired T
type MyArray*[T: int|float] = ref object
#Fixed size array type object with state.
values*: seq[T]
size*: int
#...
proc `[]`*[T: int|float](ma: MyArray, hs: HSlice): seq[T] =
result = newSeq[T](hs.b - hs.a + 1)
# ...
# I want to be able to do ...
var ma = newMyArray(...)
let sliceOfMA = ma[5..10]
RunAny help, wisdom or understanding greatly appreciated.
