Files
mercury/tests/general/do_while.exp
Fergus Henderson df867b10b7 Implement `do_while/4'.
Estimated hours taken: 2

library/std_util.m:
	Implement `do_while/4'.

samples/README:
samples/all_solutions.m:
samples/committed_choice.m:
samples/solutions/all_solutions.m:
samples/solutions/one_solution.m:
samples/solutions/some_solutions.m:
	Move the all_solutions.m and committed_choice.m samples
	into a new subdirectory `solutions', renaming committed_choice.m
	as `one_solution.m', and add a new file `some_solutions.m'
	illustrating the use of `do_while/4'.
	(Also fix some documentation rot in samples/README.)

NEWS:
	Mention the new predicate std_util__do_while/4.

tests/general/Mmakefile:
tests/general/do_while.m:
tests/general/do_while.exp:
	A test case for the new feature.
1999-10-20 03:14:35 +00:00

17 lines
125 B
Plaintext

foo
0
foo
1
foo
2
foo
100
foo
101
foo
102
foo
200
[201, 200, 102, 101, 100, 2, 1, 0]
[202, 201, 200, 102, 101, 100, 2, 1, 0]