If I am new in Julia and strting and reading this about collect:
/collect(collection) "Return an array of all items in a collection. For associative collections, returns Pair{KeyType, ValType}.// //collect(element_type, collection) Return an array of type Array{element_type,1} of all items in a collection."//
Now nothink about vecotrs in manual !
Paul


/

W dniu 2015-11-04 o 20:45, Tom Breloff pisze:
The warning is pretty clear here I think.  Use `a = collect(1:10)`

On Wed, Nov 4, 2015 at 2:43 PM, paul analyst <[email protected] <mailto:[email protected]>> wrote:

                   _
       _       _ _(_)_     |  A fresh approach to technical computing
      (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
       _ _   _| |_  __ _   |  Type "?help" for help.
      | | | | | | |/ _` |  |
      | | |_| | | | (_| |  |  Version 0.4.0 (2015-10-08 06:20 UTC)
     _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
    |__/                   |  x86_64-w64-mingw32

    julia> a=[1:1:10]
    WARNING: [a] concatenation is deprecated; use collect(a) instead
     in depwarn at deprecated.jl:73
     in oldstyle_vcat_warning at abstractarray.jl:29
     in vect at abstractarray.jl:32
    while loading no file, in expression starting on line 0
    10-element Array{Int64,1}:
      1
      2
      3
      4
      5
      6
      7
      8
      9
     10

    julia>



Reply via email to