mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
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.
5 lines
143 B
Plaintext
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
|