Associative array/Creation: Difference between revisions

Content deleted Content added
Langurmonkey (talk | contribs)
Miks1965 (talk | contribs)
PascalABC.NET
Line 4,620: Line 4,620:


In PARI the commands are <code>gtomap</code>, <code>mapput</code>, <code>mapget</code>, <code>mapisdefined</code>, and <code>mapdelete</code>. You can also use the solutions in [[Associative arrays/Creation/C]].
In PARI the commands are <code>gtomap</code>, <code>mapput</code>, <code>mapget</code>, <code>mapisdefined</code>, and <code>mapdelete</code>. You can also use the solutions in [[Associative arrays/Creation/C]].

=={{header|PascalABC.NET}}==
<syntaxhighlight lang="parigp">
begin
var zoo := new Dictionary<string,integer>;
zoo['crocodile'] := 2;
zoo['jiraffe'] := 3;
zoo['behemoth'] := 1;
zoo.Println;
end.
</syntaxhighlight>
{{out}}
<pre>
(crocodile,2) (jiraffe,3) (behemoth,1)
</pre>


=={{header|Perl}}==
=={{header|Perl}}==