Files
mercury/tests/hard_coded/map_fold.exp
Ralph Becket 9d72f5cc85 Add the foldr family to map and tree234.
Estimated hours taken: 2
Branches: main

Add the foldr family to map and tree234.

NEWS:
	Mention this change.

library/map.m:
library/tree234.m:
	Added the foldr family.

tests/hard_coded/Mmakefile:
tests/hard_coded/map_fold.exp:
tests/hard_coded/map_fold.m:
	Add a test case for map.foldl/foldr.
2007-07-30 06:03:08 +00:00

3 lines
126 B
Plaintext

[10, 10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1]
[1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10]