<div dir="ltr">Hi all, I want to add the concept of vector and map (just like vector and map in C++) in language level, for example:<div><br></div><div><span class="gmail-k" style="box-sizing:border-box;color:rgb(170,13,145);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">  var</span><span style="color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap"> </span><span class="gmail-nv" style="box-sizing:border-box;color:rgb(63,110,116);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">shoppingList</span><span style="color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap"> = [</span><span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">"catfish"</span><span style="color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">, </span><span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">"water"</span><span style="color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">, </span><span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">"tulips"</span><span style="color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap">]</span><br></div><div><span style="color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px;white-space:pre-wrap"><br></span></div><div><ol class="gmail-code-lines" style="box-sizing:border-box;margin:0px;padding:0px;list-style:none;line-height:1.6em;color:rgb(51,51,51);font-family:Menlo,monospace;font-size:14px"><li style="box-sizing:border-box;margin:0px;padding:0px 10px 0px 0px;white-space:pre-wrap;border-left:18px solid transparent;list-style-type:none"><span class="gmail-k" style="box-sizing:border-box;color:rgb(170,13,145)">var</span> <span class="gmail-nv" style="box-sizing:border-box;color:rgb(63,110,116)">occupations</span> = [
</li><li style="box-sizing:border-box;margin:0px;padding:0px 10px 0px 0px;white-space:pre-wrap;border-left:18px solid transparent;list-style-type:none">    <span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22)">"Malcolm"</span>: <span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22)">"Captain"</span>,
</li><li style="box-sizing:border-box;margin:0px;padding:0px 10px 0px 0px;white-space:pre-wrap;border-left:18px solid transparent;list-style-type:none">    <span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22)">"Kaylee"</span>: <span class="gmail-s" style="box-sizing:border-box;color:rgb(196,26,22)">"Mechanic"</span>,
</li><li style="box-sizing:border-box;margin:0px;padding:0px 10px 0px 0px;white-space:pre-wrap;border-left:18px solid transparent;list-style-type:none">]</li></ol><div><font color="#333333" face="Menlo, monospace"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div></div><div><font color="#333333" face="Menlo, monospace"><span style="font-size:14px;white-space:pre-wrap">(this is how Swift language declarate a vector and a map indeed)</span></font></div><div><font color="#333333" face="Menlo, monospace"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div><font color="#333333" face="Menlo, monospace"><span style="font-size:14px;white-space:pre-wrap">My question is I don't want to implement things like vector or map in my compiler code, so this any implemented classes in llvm API which can help me to do this?</span></font></div><div><font color="#333333" face="Menlo, monospace"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div><font color="#333333" face="Menlo, monospace"><span style="font-size:14px;white-space:pre-wrap">Or, I know how to change the code above to C++, is there any way I can turn the paring into calling C++ libraries? </span></font></div></div>