julia lang - stable docs broadcast example fails -
in the arrays section of manual there example of using implicit broadcast on strings failing me. can work around it, wanted report -
julia> string.(1:3, ". ", ["first", "second", "third"])
i following output -
error: methoderror: no method matching size(::string) closest candidates are: size{n}(::any, ::integer, ::integer, ::integer...) @ abstractarray.jl:48 size(::bitarray{1}) @ bitarray.jl:39 size(::bitarray{1}, ::any) @ bitarray.jl:43 ... in map(::base.#indices, ::tuple{string,array{string,1}}) @ ./tuple.jl:93 in broadcast_shape(::unitrange{int64}, ::string, ::array{string,1}, ::vararg{array{string,1},n}) @ ./broadcast.jl:31 in broadcast_t(::function, ::type{t}, ::unitrange{int64}, ::vararg{any,n}) @ ./broadcast.jl:228 in broadcast(::function, ::unitrange{int64}, ::string, ::array{string,1}) @ ./broadcast.jl:230
it version issue. on v0.5 doesn't work , v0.6 does.
the docs appropriately versioned:
version 0.5 array broadcasting docs
version 0.6 array broadcasting docs
so good.
Comments
Post a Comment