3 ms·
julia> x = collect(1:15)' 1×15 LinearAlgebra.Adjoint{Int64,Array{Int64,1}}: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 julia> x[1:10]' 1×10 Lin
by joeyo 8y ago
julia> x = collect(1:15)'
1×15 LinearAlgebra.Adjoint{Int64,Array{Int64,1}}:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
julia> x[1:10]'
1×10 LinearAlgebra.Adjoint{Int64,Array{Int64,1}}:
1 2 3 4 5 6 7 8 9 10
julia> x[11:end]'
1×5 LinearAlgebra.Adjoint{Int64,Array{Int64,1}}:
11 12 13 14 15
julia> x[11:length(x)]' # alternatively ...
1×5 LinearAlgebra.Adjoint{Int64,Array{Int64,1}}:
11 12 13 14 15