Hi,
I see that I can define my own type, and create instances of it like so:
~~~
type MyType{T}
x::T
end
a = MyType{Int64}(3)
~~~
I tried to do similarly to create an array, but it fails... my first guess
was that this might work:
b = Array{Int64}(10, 11, 12) # trying to get [10, 11, 12]
but maybe I need to specify the dimensions... `help(Array)` says I need to
specify type and dims, so tried:
b = Array{Int64, 3, 1}(10, 11, 12) # (make a 3x1 array) but that's not
right either.
I saw in the learnxinyminutes for Julia that you can do:
b = Int64[10, 11, 12]
which seems to be a typed version of just `[10, 11, 12]`. Is that a
shorthand syntax for some more general `Array{...}(...)` syntax?