Hi. As per the docs on splice! and n:(n-1) ranges, the following works fine
to insert a value before location 1 in a Vector:
x = [1,2,3]
splice!(x, 1:0, 23)
print(x) # => [23,1,2,3]
But the following behaves strangely and seems to corrupt the array in the
process:
a = Vector{UInt8}[UInt8[0xf3,0x32,0x37]]
splice!(a, 1:0, UInt8[7,3]) # => MethodError: `convert` has no method
matching convert(::Type{Array{UInt8,1}}, ::UInt8)
print(a) # => [#undef,#undef,UInt8[0xf3,0x32,0x37]]
Is this a bug, or have I simply not read the docs correctly?
Many thanks,
George