Hello colleagues,

i actually was a little bit puzzled by this:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.5 (2016-03-18 00:58 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org release
|__/                   |  x86_64-linux-gnu

julia> a = [8,"9",10]
3-element Array{Any,1}:
  8
   "9"
 10

julia> b = ["8",9,10,[12,"c"]]
WARNING: [a,b,...] concatenation is deprecated; use [a;b;...] instead
 in depwarn at deprecated.jl:73
 in oldstyle_vcat_warning at ./abstractarray.jl:29
 in vect at abstractarray.jl:38
while loading no file, in expression starting on line 0
5-element Array{Any,1}:
   "8"
  9
 10
 12
   "c"

julia> c = [12,"c"]
2-element Array{Any,1}:
 12
   "c"

julia> b_prime = ["8",9,10,c]
WARNING: [a,b,...] concatenation is deprecated; use [a;b;...] instead
 in depwarn at deprecated.jl:73
 in oldstyle_vcat_warning at ./abstractarray.jl:29
 in vect at abstractarray.jl:38
while loading no file, in expression starting on line 0
5-element Array{Any,1}:
   "8"
  9
 10
 12
   "c"


How do i put a list into a list? (bonus points for literals!)


Reply via email to