Files
mercury/tests/hard_coded/fold_tests.exp
Zoltan Somogyi 1db00c99aa Add gap_foldl, last_gap_foldl, chunk_foldl{,2,3,4}.
library/list.m:
    Add the above predicates to the list module.

NEWS:
    Announce the new predicates.

tests/hard_coded/fold_tests.{m,exp}:
    Test case for the new functionality.

tests/hard_coded/Mmakefile:
    Enable the new test case.
2022-03-15 12:18:07 +11:00

5 lines
143 B
Plaintext

1, 2, 3, 4, 5, 6, 7, 8, 9, 10
1, 2, 3, 4, 5, 6, 7, 8, 9 and 10
using foldl: 10_9_8_7_6_5_4_3_2_1
using chunk_foldl: 10_9_8_7_6_5_4_3_2_1