Commit Graph

1 Commits

Author SHA1 Message Date
Ian MacLarty
6fba720b49 Add the operation transform_value to map, tree234 and rbtree.
Estimated hours taken: 2
Branches: main

Add the operation transform_value to map, tree234 and rbtree.  This applies a
higher order argument to a value in the map.  Often a value needs to be updated
using its previous value.  Currently this requires two lookups of the key.
With transform_value only one lookup is required.

NEWS
	Mention the new predicate.

library/map.m
library/rbtree.m
library/tree234.m
	Add transform_value.

library/require.m
	Add a version of report_lookup_error that doesn't take a value
	argument, since the value argument is not available in transform_value.

tests/hard_coded/Mmakefile
tests/hard_coded/transform_value.exp
tests/hard_coded/transform_value.m
	Test transform_value.
2005-01-13 11:04:38 +00:00