# How using push on typed dictionary

**URL:** https://discourse.julialang.org/t/how-using-push-on-typed-dictionary/33827
**Category:** New to Julia
**Created:** [January 26, 2020, 11:15pm UTC](https://discourse.julialang.org/t/how-using-push-on-typed-dictionary/33827 "2020-01-26T23:15:44Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Darione](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/darione/32/12160_2.png) [@Darione](https://discourse.julialang.org/u/Darione)
#### Post date: [January 27, 2020, 12:03pm UTC](https://discourse.julialang.org/t/how-using-push-on-typed-dictionary/33827/5 "2020-01-27T12:03:45Z")

</div>

Hi all … I still do not understand well …

This works:

```julia
println("2° dictionary")
myDictionary2 = Dict{String,Vector{Int64}}
myDictionary2("betha"=>[1,2,3,4,5])

```

This other doesn’t:

```julia
println("3° dictionary")
myDictionary3 = Dict{String,Vector{Int64}}
push!(myDictionary3,"alpha"=>[10,20])     

```

How exactly should be the last line, using push! ? or is myDictionary3 = … that i have to change in another way, to have an instance and not a type ?

Many thanks 🙂

---

_[View the full topic](https://discourse.julialang.org/t/how-using-push-on-typed-dictionary/33827)._
