# Array types question

**URL:** https://discourse.julialang.org/t/array-types-question/23938
**Category:** New to Julia
**Created:** [May 6, 2019, 10:44pm UTC](https://discourse.julialang.org/t/array-types-question/23938 "2019-05-06T22:44:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Charles\_Parker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/charles_parker/32/8350_2.png) [@Charles\_Parker](https://discourse.julialang.org/u/Charles_Parker)
#### Post date: [May 6, 2019, 10:44pm UTC](https://discourse.julialang.org/t/array-types-question/23938/1 "2019-05-06T22:44:56Z")

</div>

From the REPL:  
julia\> fubar = [1 2 3]

1×3 Array{Int64,2}:

1 2 3

julia\> typeof(fubar)

Array{Int64,2}

Q: Where did Array{Int64,2) come from?

Thanx … Charlie

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [May 6, 2019, 10:50pm UTC](https://discourse.julialang.org/t/array-types-question/23938/2 "2019-05-06T22:50:43Z")

</div>

What part of `Array{Int64, 2}` are you wondering about?

- `Array` is the builtin array type that’s constructed with the `[]` syntax. It has two parameters:
  - `Int64` is the type of its elements — everything you put inside the `[]` were integers
  - `2` is the number of dimensions. You used space delimiters which does horizontal concatenation and thus creates a 1-row matrix. If you separated the integers with commas, then you’d get a 1-dimensional vector instead.

---

<div class="post-metadata">

### Author: ![Charles\_Parker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/charles_parker/32/8350_2.png) [@Charles\_Parker](https://discourse.julialang.org/u/Charles_Parker)
#### Post date: [May 7, 2019, 2:37am UTC](https://discourse.julialang.org/t/array-types-question/23938/3 "2019-05-07T02:37:21Z")

</div>

It was the 2; I knew about the Int64. I expected a 1 because it was one dimensional.  
Thanx for the explanation … Charlie
