Interestingly, I have just noticed a bug in append!, see 
https://github.com/JuliaLang/julia/issues/15868

It occurs when you try to append a vector of elements which have a 
different type with respect to that of the original vector and when the 
conversion mechanism fails.

On Wednesday, April 13, 2016 at 11:44:29 PM UTC+1, Steven G. Johnson wrote:
>
>
>
> On Wednesday, April 13, 2016 at 6:22:27 PM UTC-4, Greg Plowman wrote:
>>
>> Considering the existing append! is pretty loose wrt the items being 
>> appended, a simple extension to the signature might work:
>>
>> append!{T}(a::Array{T,1}, items::Union{AbstractVector,Tuple})
>>
>
> Arguably, the signature should be append!(a::AbstractVector, itr), i.e. 
> you should be able to append any iterable object.
>

Reply via email to