I’m considering an issue where all the elements are time stamps. An array of these elements can contain a single time stamp, an array, a range, an interval or combination of these. By range I intend a construction using such as collect(range(,)) which produces an array of discrete items, and by interval I intend a 2-something containing a lower and upper bound, indicating all values on the real line between the two bounds.
My thoughts so far are that if I indicate an interval as a 2-tuple then in a given mixed array I can distinguish a bounded interval from a 2-array based on its type. Just wondering if there has been prior thinking of this issue, and what the true Julia approach would be?