Files
mercury/tests/hard_coded/test_keys_and_values.exp
Julien Fischer 79f3d95511 Add the predicate map.keys_and_values/3 to the standrad library.
Branches: main, 11.07

Add the predicate map.keys_and_values/3 to the standrad library.

library/map.m:
library/tree234.m:
	Add the new predicate.

NEWS:
	Announce the new predicate.

tests/hard_coded/Mmakefile:
tests/hard_coded/test_keys_and_values.{m,exp}:
	Test the new predicate.
2012-01-15 14:49:36 +00:00

11 lines
249 B
Plaintext

KeysPrime = []
ValuesPrime = []
KeysPrime = ["one"]
ValuesPrime = [1]
KeysPrime = ["one", "two"]
ValuesPrime = [1, 2]
KeysPrime = ["one", "three", "two"]
ValuesPrime = [1, 3, 2]
KeysPrime = ["four", "one", "three", "two"]
ValuesPrime = [4, 1, 3, 2]