TimeArray -> {Regular,Irregular}TimeArray


#1

TimeArray is the type underlying JuliaStats/TimeSeries.
I need a slightly finer distinction and the ability to dispatch over each, RegularTimeArray (where deltaTime is constant) and IrregularTimeArray (where deltaTime is not always the same). I considered using the .meta field to hold Val{:Regular} or Val{:Irregular}. But others use .meta and I do not want to step on that.

What is the most direct, concise and free-of-extra-array-copying way to have each as its own struct and use the machinery of TimeArray for initializing? Can I avoid wrapping TimeArray?