Skip to content

Commit ab13a93

Browse files
Replace _maybetail with safe_tail (#124)
This was motivated by the disappearance of `_maybetail` from `Base`, which causes `AxisKeys` to not be compatible with v1.9. As it happens, `safe_tail` is identical to `_maybetail`, thus, it would seem that the latter was eliminated due to redundancy. Inspection of the v1.6 branch of JuliaLang confirms that `safe_tail` exists in its same form, thus, given the `[compat]` for this `AxisKeys`, this seems like a harmless change which enables compatibility with `master`.
1 parent f2a1573 commit ab13a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/selectors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ end
208208
@inline Base.to_indices(A::Union{KeyedArray,NdaKa}, ax, inds::Tuple{Function, Vararg}) =
209209
select_to_indices(A, ax, inds)
210210

211-
using Base: to_indices, tail, _maybetail, uncolon
211+
using Base: to_indices, tail, safe_tail, uncolon
212212

213213
@inline Base.to_indices(A::Union{KeyedArray,NdaKa}, inds, I::Tuple{Colon, Vararg{Any}}) =
214-
(uncolon(inds, I), to_indices(A, _maybetail(inds), tail(I))...)
214+
(uncolon(inds, I), to_indices(A, safe_tail(inds), tail(I))...)
215215

0 commit comments

Comments
 (0)