# Linked arrays of elements

**URL:** <https://discourse.julialang.org/t/linked-arrays-of-elements/43329>\
**Category:** New to Julia\
**Created:** [July 19, 2020, 11:34am UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329 "2020-07-19T11:34:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mamo/32/25591_2.png) [@mamo](https://discourse.julialang.org/u/mamo)\
**Post date:** [July 19, 2020, 11:34am UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329/1 "2020-07-19T11:34:18Z")

</div>

Dear Julia&JuMP support team,  
if i have a set or an array of elements:  
A=[“A1”, “A2”, “A3”]  
I want to define a new array B linked to each element of A:  
B(“A1”)=[“m1”, “m2”]  
B(“A2”)=[“m3”, “m4”]  
B(“A3”)=[“m1”, “m5”]  
This way is not working since it gives a warning “B is not defined”.  
Give me some insight please.  
Thanks,  
Marko

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [July 19, 2020, 11:44am UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329/2 "2020-07-19T11:44:39Z")

</div>

Welcome @mamo

Looks like a Dict with String as keys:  
[https://docs.julialang.org/en/v1/base/collections/#Dictionaries-1](https://docs.julialang.org/en/v1/base/collections/#Dictionaries-1)

---

<div class="post-metadata">

**Author:** ![mamo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mamo/32/25591_2.png) [@mamo](https://discourse.julialang.org/u/mamo)\
**Post date:** [July 19, 2020, 12:18pm UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329/3 "2020-07-19T12:18:04Z")

</div>

thanks oheil, I will take a look into the details.  
Regarding the environment for using the Julia and JuMP, I am currently using Atom editor, is there a better/more efficient environment for Julia&JuMP coding?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [July 19, 2020, 12:19pm UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329/4 "2020-07-19T12:19:36Z")

</div>

I prefer VSCode (with Julia extension), but I am sure, it’s a matter of taste.

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [July 19, 2020, 1:16pm UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329/5 "2020-07-19T13:16:52Z")

</div>

Just to clarify. Most people in this forum are not officially affiliated with Julia in any way. They (me included) are just enthusiasts of the language that like helping other people to learn about Julia. The Julia creators are active in this forum, and often help users, but support is not guaranteed. If you want guaranteed support you probably should look at [Julia Computing](https://juliacomputing.com/) paid support.

---

<div class="post-metadata">

**Author:** ![mamo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mamo/32/25591_2.png) [@mamo](https://discourse.julialang.org/u/mamo)\
**Post date:** [July 19, 2020, 3:09pm UTC](https://discourse.julialang.org/t/linked-arrays-of-elements/43329/6 "2020-07-19T15:09:49Z")

</div>

Thanks Henrique, this is a better way to get in touch with the language.
