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

7 lines
175 B
Plaintext

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");