A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Inverted-syntax/Mercury/inverted-syntax-1.mercury
Normal file
8
Task/Inverted-syntax/Mercury/inverted-syntax-1.mercury
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
:- pred progress(int::in, int::in, int::out, int::out) is det.
|
||||
progress(Past, Future, At, Total) :-
|
||||
At = Past + 1,
|
||||
Total = Past + Future.
|
||||
|
||||
progress(Past, Future, At, Total) :-
|
||||
Past + Future = Total,
|
||||
Past + 1 = At.
|
||||
Loading…
Add table
Add a link
Reference in a new issue