RosettaCodeData/Task/Associative-array-Creation/PARI-GP/associative-array-creation-2.pari

7 lines
175 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
mapput(M, "key", "value");
mapput(M, 17, "different value");
mapput(M, "key2", Pi);
mapget(M, "key2") \\ returns Pi
mapisdefined(M, "key3") \\ returns 0
mapdelete(M, "key2");