RosettaCodeData/Task/Associative-array-Creation/PARI-GP/associative-array-creation-2.parigp
2023-07-01 13:44:08 -04:00

6 lines
175 B
Text

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