From 6f0989d912afc7dde9f107934b45882e8fbe885f Mon Sep 17 00:00:00 2001 From: Eric Davies Date: Wed, 19 Sep 2018 09:46:27 -0500 Subject: [PATCH] Fix type piracy of 0-arg cat --- src/combine.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/combine.jl b/src/combine.jl index b9fdef7..c172c8d 100644 --- a/src/combine.jl +++ b/src/combine.jl @@ -13,7 +13,7 @@ sizes(As::AxisArray...) = tuple(zip(map(a -> map(length, Base.axes(a)), As)...). matchingdims(As::Tuple{Vararg{AxisArray}}) = all(equalvalued, sizes(As...)) matchingdimsexcept(As::Tuple{Vararg{AxisArray}}, n::Int) = all(equalvalued, sizes(As...)[[1:n-1; n+1:end]]) -Base.cat(As::AxisArray{T}...; dims) where {T} = _cat(dims, As...) +Base.cat(A1::AxisArray{T}, As::AxisArray{T}...; dims) where {T} = _cat(dims, A1, As...) _cat(::Val{n}, As...) where {n} = _cat(n, As...) @inline function _cat(n::Integer, As...)