mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
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.
3 lines
126 B
Plaintext
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]
|