Skip to content

Commit fcdaebd

Browse files
authored
Merge pull request #24 from ChrisRackauckas/vcat_scalar
Fix back of vcat with scalar argument
2 parents 6917df6 + adc5928 commit fcdaebd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/array.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ end
183183
vcat(data.(xs)...), function (Δ)
184184
start = 0
185185
Δs = [begin
186-
i = map(_ -> :, size(xsi)) |> Base.tail
186+
x = map(_ -> :, size(xsi))
187+
i = isempty(x) ? x : Base.tail(x)
187188
d = Δ[start+1:start+size(xsi,1), i...]
188189
start += size(xsi, 1)
189190
d

0 commit comments

Comments
 (0)