mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 11:54:02 +00:00
Estimated hours taken: 2 Branches: main Add the predicates int.fold_up, int.fold_down, int.fold_up2 and int.fold_down/2. Swap the order of the arguments of the functions int.fold_up and int.fold_down. library/int.m: Add the predicates int.fold_up/5, int.fold_down/5, int.fold_up2/7 and int.fold_down2/7. Swap the order of the arguments if int.fold_up/4 and int.fold_down/4. tests/hard_coded/int_fold_up_down.m: tests/hard_coded/int_fold_up_down.exp: Test the new predicates. NEWS: Mention the new predicates.
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
(5(4(3(2(1)))))
|
|
(1(2(3(4(5)))))
|
|
(5(4(3(2(1)))))
|
|
(1(2(3(4(5)))))
|
|
(5(4(3(2(1)))))(5(4(3(2(1)))))
|
|
(1(2(3(4(5)))))(1(2(3(4(5)))))
|
|
12345
|
|
54321
|
|
(5-1(4-1(3-1(2-1(1-1)))))
|
|
(5-1(4-1(3-1(2-1(1-2)))))
|
|
(5-1(4-1(3-1(2-2(1-1)))))
|
|
(5-1(4-1(3-1(2-2(1-2)))))
|
|
(5-1(4-1(3-2(2-1(1-1)))))
|
|
(5-1(4-1(3-2(2-1(1-2)))))
|
|
(5-1(4-1(3-2(2-2(1-1)))))
|
|
(5-1(4-1(3-2(2-2(1-2)))))
|
|
(5-1(4-2(3-1(2-1(1-1)))))
|
|
(5-1(4-2(3-1(2-1(1-2)))))
|
|
(5-1(4-2(3-1(2-2(1-1)))))
|
|
(5-1(4-2(3-1(2-2(1-2)))))
|
|
(5-1(4-2(3-2(2-1(1-1)))))
|
|
(5-1(4-2(3-2(2-1(1-2)))))
|
|
(5-1(4-2(3-2(2-2(1-1)))))
|
|
(5-1(4-2(3-2(2-2(1-2)))))
|
|
(5-2(4-1(3-1(2-1(1-1)))))
|
|
(5-2(4-1(3-1(2-1(1-2)))))
|
|
(5-2(4-1(3-1(2-2(1-1)))))
|
|
(5-2(4-1(3-1(2-2(1-2)))))
|
|
(5-2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