You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In principle this would allow any T for which oneunit is defined, eg Dates or a wrapper type for floats (I have an example in the discussion I link above). This makes it tricky when one wants to perform arithmetic on indexes, in cases where a simple loop is not sufficient.
OTOH, if the implicit assumption is that T <: Integer, as @mbauman suggested in the discussion, it would be great if the manual could clarify that.
The text was updated successfully, but these errors were encountered:
I am opening the issue following this discussion about the interface for general indexing.
The manual on Interfaces and custom indices specifies that
axes
should return (tuples of)AbstractUnitRange{T}
.In principle this would allow any
T
for whichoneunit
is defined, egDate
s or a wrapper type for floats (I have an example in the discussion I link above). This makes it tricky when one wants to perform arithmetic on indexes, in cases where a simple loop is not sufficient.OTOH, if the implicit assumption is that
T <: Integer
, as @mbauman suggested in the discussion, it would be great if the manual could clarify that.The text was updated successfully, but these errors were encountered: